pub trait BlockDeviceFactory: Send + Sync {
    // Required method
    fn create_block_device<'life0, 'life1, 'async_trait>(
        &'life0 self,
        config: &'life1 BlockDeviceConfig
    ) -> Pin<Box<dyn Future<Output = Box<dyn BlockDevice>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

A trait for constructing block devices.

Required Methods§

source

fn create_block_device<'life0, 'life1, 'async_trait>( &'life0 self, config: &'life1 BlockDeviceConfig ) -> Pin<Box<dyn Future<Output = Box<dyn BlockDevice>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Constructs a new block device.

Implementors§