Trait to instantiate drives of a given type.
| 341 | |
| 342 | /// Trait to instantiate drives of a given type. |
| 343 | pub trait DriveFactory { |
| 344 | /// Creates a new drive for `target`. |
| 345 | fn create(&self, target: &str) -> io::Result<Box<dyn Drive>>; |
| 346 | } |
| 347 | |
| 348 | /// Given a mount URI, validates it and returns the `(scheme, path)` pair. |
| 349 | fn split_uri(uri: &str) -> io::Result<(&str, &str)> { |