pub struct BootstrapSidecarHeader {
pub archive_uuid: [u8; 16],
pub session_id: [u8; 16],
pub flags: u32,
pub manifest_footer_offset: u64,
pub manifest_footer_length: u32,
pub index_root_records_offset: u64,
pub index_root_records_length: u64,
pub dictionary_records_offset: u64,
pub dictionary_records_length: u64,
pub sidecar_hmac: [u8; 32],
pub header_crc32c: u32,
}Fields§
§archive_uuid: [u8; 16]§session_id: [u8; 16]§flags: u32§index_root_records_offset: u64§index_root_records_length: u64§dictionary_records_offset: u64§dictionary_records_length: u64§sidecar_hmac: [u8; 32]§header_crc32c: u32Implementations§
Source§impl BootstrapSidecarHeader
impl BootstrapSidecarHeader
pub fn parse(bytes: &[u8]) -> Result<Self, FormatError>
pub fn validate_packed_layout(&self, file_size: u64) -> Result<(), FormatError>
pub fn has_index_root_records(&self) -> bool
pub fn has_dictionary_records(&self) -> bool
pub fn to_bytes(&self) -> [u8; 128]
Trait Implementations§
Source§impl Clone for BootstrapSidecarHeader
impl Clone for BootstrapSidecarHeader
Source§fn clone(&self) -> BootstrapSidecarHeader
fn clone(&self) -> BootstrapSidecarHeader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BootstrapSidecarHeader
impl Debug for BootstrapSidecarHeader
Source§impl PartialEq for BootstrapSidecarHeader
impl PartialEq for BootstrapSidecarHeader
Source§fn eq(&self, other: &BootstrapSidecarHeader) -> bool
fn eq(&self, other: &BootstrapSidecarHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for BootstrapSidecarHeader
impl StructuralPartialEq for BootstrapSidecarHeader
Auto Trait Implementations§
impl Freeze for BootstrapSidecarHeader
impl RefUnwindSafe for BootstrapSidecarHeader
impl Send for BootstrapSidecarHeader
impl Sync for BootstrapSidecarHeader
impl Unpin for BootstrapSidecarHeader
impl UnsafeUnpin for BootstrapSidecarHeader
impl UnwindSafe for BootstrapSidecarHeader
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