fake_block_server

Trait Observer

Source
pub trait Observer: Send + Sync {
    // Provided methods
    fn read(
        &self,
        _device_block_offset: u64,
        _block_count: u32,
        _vmo: &Arc<Vmo>,
        _vmo_offset: u64,
    ) { ... }
    fn write(
        &self,
        _device_block_offset: u64,
        _block_count: u32,
        _vmo: &Arc<Vmo>,
        _vmo_offset: u64,
        _opts: WriteOptions,
    ) -> WriteAction { ... }
    fn flush(&self) { ... }
    fn trim(&self, _device_block_offset: u64, _block_count: u32) { ... }
}

Provided Methods§

Source

fn read( &self, _device_block_offset: u64, _block_count: u32, _vmo: &Arc<Vmo>, _vmo_offset: u64, )

Source

fn write( &self, _device_block_offset: u64, _block_count: u32, _vmo: &Arc<Vmo>, _vmo_offset: u64, _opts: WriteOptions, ) -> WriteAction

Source

fn flush(&self)

Source

fn trim(&self, _device_block_offset: u64, _block_count: u32)

Implementors§