Trait xwt_core::io::ReadChunk

source ·
pub trait ReadChunk<ChunkType: ?Sized + ReadableChunk>: Send {
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn read_chunk<'life0, 'async_trait>(
        &'life0 mut self,
        max_length: usize,
        ordered: bool
    ) -> Pin<Box<dyn Future<Output = Result<Option<Chunk<<ChunkType as ReadableChunk>::Data<'_>>>, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

source

type Error: Error + Send + Sync + 'static

Required Methods§

source

fn read_chunk<'life0, 'async_trait>( &'life0 mut self, max_length: usize, ordered: bool ) -> Pin<Box<dyn Future<Output = Result<Option<Chunk<<ChunkType as ReadableChunk>::Data<'_>>>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§