Trait AsyncChunkReader

Source
pub trait AsyncChunkReader: Send {
    // Required methods
    fn len(&mut self) -> BoxFuture<'_, Result<u64>>;
    fn get_bytes(
        &mut self,
        offset_from_start: u64,
        length: u64,
    ) -> BoxFuture<'_, Result<Bytes>>;
}

Required Methods§

Source

fn len(&mut self) -> BoxFuture<'_, Result<u64>>

Source

fn get_bytes( &mut self, offset_from_start: u64, length: u64, ) -> BoxFuture<'_, Result<Bytes>>

Trait Implementations§

Source§

impl AsyncChunkReader for Box<dyn AsyncChunkReader>

Source§

fn len(&mut self) -> BoxFuture<'_, Result<u64>>

Source§

fn get_bytes( &mut self, offset_from_start: u64, length: u64, ) -> BoxFuture<'_, Result<Bytes>>

Implementations on Foreign Types§

Source§

impl AsyncChunkReader for Box<dyn AsyncChunkReader>

Source§

fn len(&mut self) -> BoxFuture<'_, Result<u64>>

Source§

fn get_bytes( &mut self, offset_from_start: u64, length: u64, ) -> BoxFuture<'_, Result<Bytes>>

Implementors§