Trait endbasic_std::storage::DriveFactory

source ·
pub trait DriveFactory {
    // Required method
    fn create(&self, target: &str) -> Result<Box<dyn Drive>>;
}
Expand description

Trait to instantiate drives of a given type.

Required Methods§

source

fn create(&self, target: &str) -> Result<Box<dyn Drive>>

Creates a new drive for target.

Implementors§