pub enum SuperblockReason {
BadMagic,
BadCsum,
GenerationSkew,
NoValidCopy,
UnsupportedCsumType,
UnsupportedIncompat,
BadGeometry,
}Expand description
Why the superblock was rejected. Present as a sub-enum so callers that
only care about the boundary can match on Error::BadSuperblock(_)
without enumerating the inner variants.
Variants§
BadMagic
Magic field did not match the canonical _BHRfS_M.
BadCsum
CRC32C over the superblock body did not match the stored csum.
GenerationSkew
All four superblock copies disagreed irreconcilably on generation.
NoValidCopy
All known superblock locations failed to read or validate.
UnsupportedCsumType
Superblock claims a csum_type other than CRC32C.
UnsupportedIncompat
Superblock claims an INCOMPAT flag the crate does not implement.
BadGeometry
nodesize / sectorsize outside the supported range.
Trait Implementations§
Source§impl Clone for SuperblockReason
impl Clone for SuperblockReason
Source§fn clone(&self) -> SuperblockReason
fn clone(&self) -> SuperblockReason
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 SuperblockReason
Source§impl Debug for SuperblockReason
impl Debug for SuperblockReason
impl Eq for SuperblockReason
Source§impl PartialEq for SuperblockReason
impl PartialEq for SuperblockReason
Source§fn eq(&self, other: &SuperblockReason) -> bool
fn eq(&self, other: &SuperblockReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SuperblockReason
Auto Trait Implementations§
impl Freeze for SuperblockReason
impl RefUnwindSafe for SuperblockReason
impl Send for SuperblockReason
impl Sync for SuperblockReason
impl Unpin for SuperblockReason
impl UnsafeUnpin for SuperblockReason
impl UnwindSafe for SuperblockReason
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