MCPcopy Create free account
hub / github.com/endbasic/endbasic / DriveFactory

Interface DriveFactory

std/src/storage/mod.rs:343–346  ·  view source on GitHub ↗

Trait to instantiate drives of a given type.

Source from the content-addressed store, hash-verified

341
342/// Trait to instantiate drives of a given type.
343pub 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.
349fn split_uri(uri: &str) -> io::Result<(&str, &str)> {

Callers

nothing calls this directly

Implementers 6

drive.rsclient/src/drive.rs
fs.rsstd/src/storage/fs.rs
mem.rsstd/src/storage/mem.rs
store.rsweb/src/store.rs
lib.rsrepl/src/lib.rs
demos.rsrepl/src/demos.rs

Calls

no outgoing calls

Tested by

no test coverage detected