pub enum CrcStatus {
Match,
Mismatch {
stored: String,
computed: String,
},
NotStored,
}Expand description
Outcome of verifying a file entry’s stored CRC against its decompressed data
(see DarReader::verify). CRC values are lowercase hex.
Variants§
Match
The stored CRC matches the data.
Mismatch
The stored CRC disagrees with the data — consistent with corruption or tampering of the archived bytes.
Fields
NotStored
No CRC is stored for this entry (edition-1 archives record none), so integrity cannot be checked.
Trait Implementations§
impl Eq for CrcStatus
impl StructuralPartialEq for CrcStatus
Auto Trait Implementations§
impl Freeze for CrcStatus
impl RefUnwindSafe for CrcStatus
impl Send for CrcStatus
impl Sync for CrcStatus
impl Unpin for CrcStatus
impl UnsafeUnpin for CrcStatus
impl UnwindSafe for CrcStatus
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