pub enum DbIssue {
UnorderedRecord,
HeaderCorrupted,
OriginDateInvalid,
RecordCorrupted(u64),
MismatchRecordAmount,
None,
}
Expand description
Potential Issue in the DB file
Variants§
UnorderedRecord
If a record is not properly chonologicaly ordered.
HeaderCorrupted
If the header is corrupted (cannot be fully read or data are wrong).
OriginDateInvalid
If the date of the DB is invalid.
RecordCorrupted(u64)
If a record is corrupted (cannot be fully read or data are wrong) with its index.
MismatchRecordAmount
If the number of record in the header doesn’t match the amount that can be read from the physical file.
None
Indicate that there is no known issue
Trait Implementations§
impl Copy for DbIssue
impl StructuralPartialEq for DbIssue
Auto Trait Implementations§
impl Freeze for DbIssue
impl RefUnwindSafe for DbIssue
impl Send for DbIssue
impl Sync for DbIssue
impl Unpin for DbIssue
impl UnwindSafe for DbIssue
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