pub enum SectorClass {
Valid,
Free,
Foreign {
found: u32,
},
Unsupported {
found: u8,
},
}Expand description
How a sector’s header reads to a database configured with a given LogId.
Variants§
Valid
A well-formed sector belonging to this log.
Free
Not a sector of this format: erased, never written, or foreign data that does not parse. Safe to treat as free space.
Foreign
A well-formed sector of this format that belongs to a different log.
Never treat this as free: erasing it would destroy another device’s data.
Unsupported
A well-formed header of this family with a version this build cannot read.
Trait Implementations§
Source§impl Clone for SectorClass
impl Clone for SectorClass
impl Copy for SectorClass
Source§impl Debug for SectorClass
impl Debug for SectorClass
impl Eq for SectorClass
Source§impl Format for SectorClass
Available on crate feature defmt only.
impl Format for SectorClass
Available on crate feature
defmt only.Source§impl PartialEq for SectorClass
impl PartialEq for SectorClass
impl StructuralPartialEq for SectorClass
Auto Trait Implementations§
impl Freeze for SectorClass
impl RefUnwindSafe for SectorClass
impl Send for SectorClass
impl Sync for SectorClass
impl Unpin for SectorClass
impl UnsafeUnpin for SectorClass
impl UnwindSafe for SectorClass
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