Mmap custom storage example

This commit is contained in:
Igor Katson 2024-04-30 23:12:23 +01:00
parent fd30ad9cbf
commit 3398babba9
6 changed files with 122 additions and 75 deletions

View file

@ -58,6 +58,7 @@ pub use spawn_utils::spawn as librqbit_spawn;
pub use torrent_state::{
ManagedTorrent, ManagedTorrentInfo, ManagedTorrentState, TorrentStats, TorrentStatsState,
};
pub use type_aliases::FileInfos;
pub use buffers::*;
pub use clone_to_owned::CloneToOwned;

View file

@ -8,6 +8,6 @@ pub type BF = bitvec::boxed::BitBox<u8, bitvec::order::Msb0>;
pub type PeerHandle = SocketAddr;
pub type PeerStream = BoxStream<'static, SocketAddr>;
pub(crate) type FileInfos = Vec<FileInfo>;
pub type FileInfos = Vec<FileInfo>;
pub(crate) type FileStorage = Box<dyn TorrentStorage>;
pub(crate) type FilePriorities = Vec<usize>;