Enum lsm_tree::JournalRecoveryError
source · pub enum JournalRecoveryError {
InsufficientLength,
MissingTerminator,
TooManyItems,
CrcCheck,
}
Expand description
Errors that can occur during journal recovery
Variants§
InsufficientLength
Batch had less items than expected, so it’s incomplete
MissingTerminator
Batch was not terminated, so it’s possibly incomplete
TooManyItems
Too many items in batch
CrcCheck
The CRC value does not match the expected value
Trait Implementations§
source§impl Clone for RecoveryError
impl Clone for RecoveryError
source§fn clone(&self) -> RecoveryError
fn clone(&self) -> RecoveryError
Returns a copy of the value. Read more
1.0.0 · 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 RecoveryError
impl Debug for RecoveryError
source§impl PartialEq for RecoveryError
impl PartialEq for RecoveryError
source§fn eq(&self, other: &RecoveryError) -> bool
fn eq(&self, other: &RecoveryError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RecoveryError
impl StructuralEq for RecoveryError
impl StructuralPartialEq for RecoveryError
Auto Trait Implementations§
impl RefUnwindSafe for RecoveryError
impl Send for RecoveryError
impl Sync for RecoveryError
impl Unpin for RecoveryError
impl UnwindSafe for RecoveryError
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.