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) { ... }
}