[][src]Trait integer_encoding::VarIntAsyncReader

pub trait VarIntAsyncReader {
#[must_use]    fn read_varint_async<'life0, 'async_trait, VI: VarInt>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<VI>> + Send + 'async_trait>>
    where
        VI: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
; }

Like a VarIntReader, but returns a future.

Required methods

#[must_use]fn read_varint_async<'life0, 'async_trait, VI: VarInt>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<VI>> + Send + 'async_trait>> where
    VI: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

impl<AR: AsyncRead + Unpin + Send> VarIntAsyncReader for AR[src]

Loading content...