Skip to main content

AsyncWriteTo

Trait AsyncWriteTo 

Source
pub trait AsyncWriteTo {
    // Required method
    fn async_write_to<W: AsyncWrite + Unpin + ?Sized>(
        &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 + ?Sized>( &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".

Implementors§

Source§

impl<T: Encode> AsyncWriteTo for T