pub trait BlockConnector: Send + Sync {
// Required method
fn connect_volume(&self) -> Result<ClientEnd<VolumeMarker>, Error>;
// Provided methods
fn connect_partition(&self) -> Result<ClientEnd<PartitionMarker>, Error> { ... }
fn connect_block(&self) -> Result<ClientEnd<BlockMarker>, Error> { ... }
}
Expand description
An abstract connector for things that speak fuchsia.hardware.block.Block and similar protocols.