pub enum CrashRecovery {
Clean,
TruncatedLine,
CorruptEntries {
count: usize,
},
CorruptEntriesWithTruncation {
count: usize,
},
}Expand description
Crash recovery status returned by SessionReader.
Variants§
Clean
TruncatedLine
CorruptEntries
CorruptEntriesWithTruncation
Both corruption and truncation detected.
Implementations§
Source§impl CrashRecovery
impl CrashRecovery
Sourcepub fn corrupt_count(&self) -> usize
pub fn corrupt_count(&self) -> usize
Return the number of corrupt/unparseable entries found during load.
Trait Implementations§
Source§impl Clone for CrashRecovery
impl Clone for CrashRecovery
Source§fn clone(&self) -> CrashRecovery
fn clone(&self) -> CrashRecovery
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 moreSource§impl Debug for CrashRecovery
impl Debug for CrashRecovery
Source§impl PartialEq for CrashRecovery
impl PartialEq for CrashRecovery
Source§fn eq(&self, other: &CrashRecovery) -> bool
fn eq(&self, other: &CrashRecovery) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CrashRecovery
impl StructuralPartialEq for CrashRecovery
Auto Trait Implementations§
impl Freeze for CrashRecovery
impl RefUnwindSafe for CrashRecovery
impl Send for CrashRecovery
impl Sync for CrashRecovery
impl Unpin for CrashRecovery
impl UnsafeUnpin for CrashRecovery
impl UnwindSafe for CrashRecovery
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