#[non_exhaustive]pub struct MainHeader {
pub head_crc: u16,
pub flags: u16,
pub head_size: u16,
pub reserved1: u16,
pub reserved2: u32,
pub encrypt_version: Option<u8>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.head_crc: u16§flags: u16§head_size: u16§reserved1: u16§reserved2: u32§encrypt_version: Option<u8>Implementations§
Source§impl MainHeader
impl MainHeader
pub fn has_archive_comment(&self) -> bool
pub fn is_volume(&self) -> bool
pub fn is_solid(&self) -> bool
pub fn uses_new_numbering(&self) -> bool
pub fn has_recovery_record(&self) -> bool
pub fn has_encrypted_headers(&self) -> bool
pub fn is_first_volume(&self) -> bool
Trait Implementations§
Source§impl Clone for MainHeader
impl Clone for MainHeader
Source§fn clone(&self) -> MainHeader
fn clone(&self) -> MainHeader
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 MainHeader
impl Debug for MainHeader
Source§impl PartialEq for MainHeader
impl PartialEq for MainHeader
Source§fn eq(&self, other: &MainHeader) -> bool
fn eq(&self, other: &MainHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MainHeader
impl StructuralPartialEq for MainHeader
Auto Trait Implementations§
impl Freeze for MainHeader
impl RefUnwindSafe for MainHeader
impl Send for MainHeader
impl Sync for MainHeader
impl Unpin for MainHeader
impl UnsafeUnpin for MainHeader
impl UnwindSafe for MainHeader
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