pub trait TypedAsyncRead<T> {
    fn read<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<Option<T>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Interface to read some structured data asynchronously

Required Methods

Reads some data, returning Some(T) if available or None if the reader has closed and no longer is providing data

Trait Implementations

Reads some data, returning Some(T) if available or None if the reader has closed and no longer is providing data Read more

Implementations on Foreign Types

Implementors