pub enum DiagKind {
Overlap {
start: u64,
len: u64,
},
Gap {
start: u64,
len: u64,
},
Truncated {
start: u64,
want: u64,
have: u64,
},
ChainCycle {
at_offset: u64,
},
BackwardChainLink {
from: u64,
to: u64,
},
DataHashMismatch {
uid: [u8; 16],
},
TableHashMismatch {
block_index: usize,
},
EntryInvalid {
uid: [u8; 16],
reason: String,
},
BadHeader {
reason: String,
},
BadBlock {
offset: u64,
reason: String,
},
}Expand description
The class of an anomaly found in a file.
Variants§
Overlap
Two physical regions cover overlapping bytes.
Gap
A run of bytes covered by no region (dead space / padding).
Truncated
A declared region runs past the end of the file.
ChainCycle
The block chain links back to a block already visited.
BackwardChainLink
A next_table_offset points to an earlier offset (legal under the
PFS-MS append model, surfaced for information only).
DataHashMismatch
A partition’s stored data_hash does not match its bytes.
TableHashMismatch
A table block’s stored table_hash does not match its bytes.
EntryInvalid
A live entry failed the PCF conformance checks.
BadHeader
The file header could not be parsed.
BadBlock
A table block header could not be parsed.
Trait Implementations§
impl Eq for DiagKind
impl StructuralPartialEq for DiagKind
Auto Trait Implementations§
impl Freeze for DiagKind
impl RefUnwindSafe for DiagKind
impl Send for DiagKind
impl Sync for DiagKind
impl Unpin for DiagKind
impl UnsafeUnpin for DiagKind
impl UnwindSafe for DiagKind
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