#[non_exhaustive]pub enum IndexCheck {
None,
Ok {
vectors: usize,
delta_runs: usize,
},
UnknownLayout(u8),
Damaged(String),
}Expand description
RB-015.1 (v0.19.1): what Mnemo::verify_index found in the persisted
ANN index. The index is derived data: whatever this says, the memories
are intact, and mnemo index --rebuild writes a new index.
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.
None
The file has no persisted index; recall scans exactly.
Ok
The index run and its delta runs decrypt and decode.
Fields
UnknownLayout(u8)
The base run has a layout this build doesn’t know (a newer build wrote it). Recall scans exactly; the newer build still reads it.
Damaged(String)
A run didn’t decrypt or decode. Recall scans exactly until the index is rebuilt. The text is the error.
Trait Implementations§
Source§impl Clone for IndexCheck
impl Clone for IndexCheck
Source§impl Debug for IndexCheck
impl Debug for IndexCheck
impl Eq for IndexCheck
Source§impl PartialEq for IndexCheck
impl PartialEq for IndexCheck
impl StructuralPartialEq for IndexCheck
Auto Trait Implementations§
impl Forget for IndexCheck
impl Freeze for IndexCheck
impl Move for IndexCheck
impl RefUnwindSafe for IndexCheck
impl Send for IndexCheck
impl Sync for IndexCheck
impl Unpin for IndexCheck
impl UnsafeUnpin for IndexCheck
impl UnwindSafe for IndexCheck
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