pub trait ReadObjectHandle: ObjectHandle {
    // Required method
    fn read<'life0, 'life1, 'async_trait>(
        &'life0 self,
        offset: u64,
        buf: MutableBufferRef<'life1>
    ) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn read<'life0, 'life1, 'async_trait>( &'life0 self, offset: u64, buf: MutableBufferRef<'life1> ) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Fills |buf| with up to |buf.len()| bytes read from |offset| on the underlying device. |offset| and |buf| must both be block-aligned.

Implementors§