pub type StorageFactory = Box<dyn Fn(&TorrentMetaV1, &Path) -> Arc<dyn TorrentStorage> + Send + Sync>;Expand description
Type alias for a factory that creates per-torrent storage.
Aliased Typeยง
pub struct StorageFactory(/* private fields */);pub type StorageFactory = Box<dyn Fn(&TorrentMetaV1, &Path) -> Arc<dyn TorrentStorage> + Send + Sync>;Type alias for a factory that creates per-torrent storage.
pub struct StorageFactory(/* private fields */);