pub enum FactFault {
Text,
Vector,
Metadata,
}Expand description
The per-fact content problem Memory::faulty_facts attributes to a
fact — the salvage predicate recover uses. It mirrors the
content checks Memory::verify runs, split out per fact so a caller can
drop the individual bad records instead of failing the whole image.
Variants§
Text
The fact’s stored text is not valid UTF-8.
Vector
The fact is flagged with a vector but its slot is out of range or does not name the fact back (the fact↔slot bijection is broken).
Metadata
The fact’s metadata blob is out of range or does not decode to a well-formed key→value map.
Trait Implementations§
impl Copy for FactFault
impl Eq for FactFault
impl StructuralPartialEq for FactFault
Auto Trait Implementations§
impl Freeze for FactFault
impl RefUnwindSafe for FactFault
impl Send for FactFault
impl Sync for FactFault
impl Unpin for FactFault
impl UnsafeUnpin for FactFault
impl UnwindSafe for FactFault
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