Trait BlockConnector

Source
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.

Required Methods§

Provided Methods§

Implementations on Foreign Types§

Source§

impl BlockConnector for ControllerProxy

Source§

impl BlockConnector for PartitionServiceProxy

Source§

impl<T: BlockConnector> BlockConnector for Arc<T>

Implementors§