Trait fs_management::format::DetectableDevice
source · pub trait DetectableDevice: Send + Sync {
// Required methods
fn get_info(&self) -> QueryResponseFut<BlockGetInfoResult>;
fn read_blocks(
&self,
vmo: Vmo,
length: u64,
dev_offset: u64,
vmo_offset: u64
) -> QueryResponseFut<BlockReadBlocksResult>;
}
Expand description
Wrap the functions that detect_disk_format
needs to use from Block in a trait, so we can
substitute something else (e.g. a PartitionProxy).