pub struct DownloadHeader {
pub magic: [u8; 2],
pub version: u8,
pub ekey_size: u8,
pub has_checksum: bool,
pub entry_count: u32,
pub tag_count: u16,
pub flag_size: u8,
pub base_priority: i8,
pub unknown: u32,
}
Expand description
Download manifest header
Fields§
§magic: [u8; 2]
Magic bytes “DL”
version: u8
Version (1, 2, or 3)
ekey_size: u8
EKey size (typically 16)
has_checksum: bool
Whether entries include checksums
entry_count: u32
Number of file entries
tag_count: u16
Number of tags
flag_size: u8
Size of flag data per entry (v2+)
base_priority: i8
Base priority offset (v3+)
unknown: u32
Unknown field (v3+)
Implementations§
Trait Implementations§
Source§impl Clone for DownloadHeader
impl Clone for DownloadHeader
Source§fn clone(&self) -> DownloadHeader
fn clone(&self) -> DownloadHeader
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 DownloadHeader
impl RefUnwindSafe for DownloadHeader
impl Send for DownloadHeader
impl Sync for DownloadHeader
impl Unpin for DownloadHeader
impl UnwindSafe for DownloadHeader
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