Skip to main content

PlaintextChunkReader

Trait PlaintextChunkReader 

Source
pub trait PlaintextChunkReader: Send {
    type Error: Send;

    // Required method
    fn next_chunk<'life0, 'async_trait>(
        &'life0 mut self,
        max: usize,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn next_chunk<'life0, 'async_trait>( &'life0 mut self, max: usize, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§