AsyncReadElement

Trait AsyncReadElement 

Source
pub trait AsyncReadElement: Sized + Element {
    // Provided method
    fn async_read_element<R: AsyncRead + Unpin>(
        header: &Header,
        r: &mut R,
    ) -> impl Future<Output = Result<Self>> { ... }
}
Available on crate feature tokio only.
Expand description

Read an element from a reader provided the header asynchronously.

Provided Methods§

Source

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

Read an element from a reader provided the header.

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§