Trait SectorReader

Source
pub trait SectorReader: Send + Sync {
    type ReadError;

    // Required methods
    fn size<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<u64, Self::ReadError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn read_sector<'life0, 'async_trait>(
        &'life0 mut self,
        sector: usize,
        sector_size: u32,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Self::ReadError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn size<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<u64, Self::ReadError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn read_sector<'life0, 'async_trait>( &'life0 mut self, sector: usize, sector_size: u32, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Self::ReadError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

Source§

impl<T> SectorReader for T
where T: Read + Seek + Send + Sync,