Trait integer_encoding::VarIntAsyncWriter[][src]

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

Like VarIntWriter, but asynchronous.

Required methods

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

Write a VarInt integer to an asynchronous writer.

Loading content...

Implementors

impl<AW: AsyncWrite + Send + Unpin> VarIntAsyncWriter for AW[src]

Loading content...