Mmap custom storage example
This commit is contained in:
parent
fd30ad9cbf
commit
3398babba9
6 changed files with 122 additions and 75 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue