AsyncWriteTo

Trait AsyncWriteTo 

Source
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§

Source

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.

Implementors§

Source§

impl<T: Encode> AsyncWriteTo for T