pub type StorageFactory = Box<dyn Fn(&TorrentMetaV1, &Path) -> Arc<dyn TorrentStorage> + Sync + Send>;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> + Sync + Send>;Type alias for a factory that creates per-torrent storage.
pub struct StorageFactory(/* private fields */);