pub trait DriveFactory {
// Required method
fn create(&self, target: &str) -> Result<Box<dyn Drive>>;
}
Expand description
Trait to instantiate drives of a given type.
pub trait DriveFactory {
// Required method
fn create(&self, target: &str) -> Result<Box<dyn Drive>>;
}
Trait to instantiate drives of a given type.