pub enum FormatCheck {
Length,
Magic,
Family,
Version,
HeaderLength,
FileLength,
BlockLength,
BlockChecksum,
FileChecksum,
ObjectIdentity,
}Expand description
The exact validation check that rejected an artifact.
Variants§
Length
A required byte range was truncated.
Magic
The permanent magic did not match.
Family
The artifact belonged to another registered family.
Version
The format registry rejected the declared version.
HeaderLength
The declared header length was invalid.
FileLength
The declared file length did not match the bytes supplied.
BlockLength
A block length was invalid or did not consume the framed body exactly.
BlockChecksum
A framed block’s xxh3-64 did not match.
FileChecksum
The whole-file xxh3-64 trailer did not match.
ObjectIdentity
The immutable object identity did not match the caller’s expectation.
Trait Implementations§
Source§impl Clone for FormatCheck
impl Clone for FormatCheck
impl Copy for FormatCheck
Source§impl Debug for FormatCheck
impl Debug for FormatCheck
impl Eq for FormatCheck
Source§impl PartialEq for FormatCheck
impl PartialEq for FormatCheck
impl StructuralPartialEq for FormatCheck
Auto Trait Implementations§
impl Freeze for FormatCheck
impl RefUnwindSafe for FormatCheck
impl Send for FormatCheck
impl Sync for FormatCheck
impl Unpin for FormatCheck
impl UnsafeUnpin for FormatCheck
impl UnwindSafe for FormatCheck
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