pub struct DownloadManifest {
pub header: DownloadHeader,
pub entries: HashMap<Vec<u8>, DownloadEntry>,
pub priority_order: Vec<Vec<u8>>,
pub tags: Vec<DownloadTag>,
}
Expand description
Download manifest file
Fields§
§header: DownloadHeader
Header information
entries: HashMap<Vec<u8>, DownloadEntry>
File entries indexed by EKey
priority_order: Vec<Vec<u8>>
Download priority order (sorted)
Tags for conditional downloads
Implementations§
Source§impl DownloadManifest
impl DownloadManifest
Sourcepub fn get_priority_files(&self, max_priority: i8) -> Vec<&DownloadEntry>
pub fn get_priority_files(&self, max_priority: i8) -> Vec<&DownloadEntry>
Get files by priority (0 = highest)
Get files for specific tags
Sourcepub fn get_download_size(&self, max_priority: i8) -> u64
pub fn get_download_size(&self, max_priority: i8) -> u64
Get total download size for priority level
Sourcepub fn get_essential_files(&self) -> Vec<&DownloadEntry>
pub fn get_essential_files(&self) -> Vec<&DownloadEntry>
Get all high priority files (priority 0)
Trait Implementations§
Source§impl Clone for DownloadManifest
impl Clone for DownloadManifest
Source§fn clone(&self) -> DownloadManifest
fn clone(&self) -> DownloadManifest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for DownloadManifest
impl RefUnwindSafe for DownloadManifest
impl Send for DownloadManifest
impl Sync for DownloadManifest
impl Unpin for DownloadManifest
impl UnwindSafe for DownloadManifest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more