pub trait BlockConnector: Send + Sync {
// Required method
fn connect_channel_to_volume(
&self,
server_end: ServerEnd<VolumeMarker>,
) -> Result<(), Error>;
// Provided methods
fn connect_volume(&self) -> Result<ClientEnd<VolumeMarker>, Error> { ... }
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.