Trait integer_encoding::VarIntAsyncWriter

source ·
pub trait VarIntAsyncWriter {
    // Required method
    fn write_varint_async<'life0, 'async_trait, VI>(
        &'life0 mut self,
        n: VI,
    ) -> Pin<Box<dyn Future<Output = Result<usize>> + 'async_trait>>
       where VI: 'async_trait + VarInt,
             Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Like VarIntWriter, but asynchronous.

Required Methods§

source

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

Write a VarInt integer to an asynchronous writer.

Object Safety§

This trait is not object safe.

Implementors§