#[non_exhaustive]pub enum SuperblockDefect {
BadChecksum,
BadMagic,
BadCount(u32),
}Expand description
Why a superblock slot failed validation (I106). These are exactly the three
torn-slot causes deserialize checks. Copy and small so the failure-path
Vec<SlotDefect> is cheap.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for SuperblockDefect
impl Clone for SuperblockDefect
Source§fn clone(&self) -> SuperblockDefect
fn clone(&self) -> SuperblockDefect
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 SuperblockDefect
Source§impl Debug for SuperblockDefect
impl Debug for SuperblockDefect
Source§impl Display for SuperblockDefect
impl Display for SuperblockDefect
impl Eq for SuperblockDefect
Source§impl PartialEq for SuperblockDefect
impl PartialEq for SuperblockDefect
impl StructuralPartialEq for SuperblockDefect
Auto Trait Implementations§
impl Freeze for SuperblockDefect
impl RefUnwindSafe for SuperblockDefect
impl Send for SuperblockDefect
impl Sync for SuperblockDefect
impl Unpin for SuperblockDefect
impl UnsafeUnpin for SuperblockDefect
impl UnwindSafe for SuperblockDefect
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