Trait ReadFrom

Source
pub trait ReadFrom: Sized {
    // Required method
    fn read_from<T: AsyncRead + Unpin>(
        source: &mut T,
    ) -> impl Future<Output = Result<Self>>;
}

Required Methods§

Source

fn read_from<T: AsyncRead + Unpin>( source: &mut T, ) -> impl Future<Output = Result<Self>>

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§