pub trait AsyncWriteTo {
// Required method
fn async_write_to<W: AsyncWrite + Unpin>(
&self,
w: &mut W,
) -> impl Future<Output = Result<()>>;
}Available on crate feature
tokio only.Expand description
Write to a writer asynchronously.
Required Methods§
Sourcefn async_write_to<W: AsyncWrite + Unpin>(
&self,
w: &mut W,
) -> impl Future<Output = Result<()>>
fn async_write_to<W: AsyncWrite + Unpin>( &self, w: &mut W, ) -> impl Future<Output = Result<()>>
Write to a writer asynchronously.
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.