pub struct HeaderProvenance {
pub version: u32,
pub unclean_shutdown: bool,
pub newline_check_intact: bool,
pub uses_redundant_gd: bool,
pub compressed: bool,
pub has_markers: bool,
}Expand description
Provenance read from the 512-byte sparse header — fields other readers discard.
Fields§
§version: u32Header format version (1, 2, or 3).
unclean_shutdown: booluncleanShutdown (byte 72) — the disk was not closed cleanly (crash / power-loss
/ live image): in-flight writes may be inconsistent.
newline_check_intact: boolNewline-detection bytes (73..77) are exactly 0A 20 0D 0A. false ⇒ the binary
was mangled by an ASCII-mode FTP transfer (which rewrites \r\n).
uses_redundant_gd: boolFlag bit 0x2 — a redundant (secondary) grain directory is present.
compressed: boolFlag bit 0x10000 — grains carry compressed data.
has_markers: boolFlag bit 0x20000 — the stream carries metadata markers (streamOptimized).
Trait Implementations§
Source§impl Clone for HeaderProvenance
impl Clone for HeaderProvenance
Source§fn clone(&self) -> HeaderProvenance
fn clone(&self) -> HeaderProvenance
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 moreimpl Copy for HeaderProvenance
Source§impl Debug for HeaderProvenance
impl Debug for HeaderProvenance
impl Eq for HeaderProvenance
Source§impl PartialEq for HeaderProvenance
impl PartialEq for HeaderProvenance
Source§fn eq(&self, other: &HeaderProvenance) -> bool
fn eq(&self, other: &HeaderProvenance) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HeaderProvenance
Auto Trait Implementations§
impl Freeze for HeaderProvenance
impl RefUnwindSafe for HeaderProvenance
impl Send for HeaderProvenance
impl Sync for HeaderProvenance
impl Unpin for HeaderProvenance
impl UnsafeUnpin for HeaderProvenance
impl UnwindSafe for HeaderProvenance
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