pub trait AsyncWriteValue: AsyncWrite {
// Provided methods
fn write_bool(&mut self, v: bool) -> impl Future<Output = Result<()>>
where Self: Unpin { ... }
fn write_option_status<T>(
&mut self,
v: Option<T>,
) -> impl Future<Output = Result<()>>
where Self: Unpin { ... }
fn write_result_status<T, E>(
&mut self,
v: Result<T, E>,
) -> impl Future<Output = Result<()>>
where Self: Unpin { ... }
}
Provided Methods§
fn write_bool(&mut self, v: bool) -> impl Future<Output = Result<()>>where
Self: Unpin,
fn write_option_status<T>(
&mut self,
v: Option<T>,
) -> impl Future<Output = Result<()>>where
Self: Unpin,
fn write_result_status<T, E>(
&mut self,
v: Result<T, E>,
) -> impl Future<Output = Result<()>>where
Self: Unpin,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.