AsyncReadFrom

Trait AsyncReadFrom 

Source
pub trait AsyncReadFrom: Sized {
    // Required method
    fn async_read_from<R: AsyncRead + Unpin>(
        r: &mut R,
    ) -> impl Future<Output = Result<Self>>;
}
Available on crate feature tokio only.
Expand description

Read from a reader asynchronously.

Required Methods§

Source

fn async_read_from<R: AsyncRead + Unpin>( r: &mut R, ) -> impl Future<Output = Result<Self>>

Read Self from a reader.

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§