pub struct FileFlags(pub u8);Expand description
Bitfield flags stored in the file header.
Tuple Fields§
§0: u8Implementations§
Source§impl FileFlags
impl FileFlags
Sourcepub const CHECKSUMS_ENABLED: u8 = 0b0000_0001
pub const CHECKSUMS_ENABLED: u8 = 0b0000_0001
Bit 0: per-block CRC32 checksums are present and validated.
Sourcepub const STREAMING: u8 = 0b0000_0010
pub const STREAMING: u8 = 0b0000_0010
Bit 1: file was produced from a streaming input (sizes may be u64::MAX).
pub fn checksums_enabled(self) -> bool
pub fn streaming(self) -> bool
pub fn with_checksums(self) -> Self
pub fn with_streaming(self) -> Self
Trait Implementations§
impl Copy for FileFlags
impl Eq for FileFlags
impl StructuralPartialEq for FileFlags
Auto Trait Implementations§
impl Freeze for FileFlags
impl RefUnwindSafe for FileFlags
impl Send for FileFlags
impl Sync for FileFlags
impl Unpin for FileFlags
impl UnsafeUnpin for FileFlags
impl UnwindSafe for FileFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more