pub enum LedgerCommitError<E> {
Recovery(CommitRecoveryError),
PhysicalLogicalGenerationMismatch {
physical_generation: u64,
logical_generation: u64,
},
Codec(E),
Compatibility(LedgerCompatibilityError),
Integrity(LedgerIntegrityError),
}Expand description
LedgerCommitError
Failure to recover or commit a logical allocation ledger.
Variants§
Recovery(CommitRecoveryError)
Protected physical commit recovery failed.
PhysicalLogicalGenerationMismatch
Physical slot generation and decoded logical ledger generation disagree.
Fields
Codec(E)
Integration-supplied codec failed.
Compatibility(LedgerCompatibilityError)
Decoded ledger format is not compatible with this reader.
Integrity(LedgerIntegrityError)
Decoded ledger violates structural allocation-history invariants.
Trait Implementations§
Source§impl<E: Clone> Clone for LedgerCommitError<E>
impl<E: Clone> Clone for LedgerCommitError<E>
Source§fn clone(&self) -> LedgerCommitError<E>
fn clone(&self) -> LedgerCommitError<E>
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<E: Debug> Debug for LedgerCommitError<E>
impl<E: Debug> Debug for LedgerCommitError<E>
Source§impl<E> Display for LedgerCommitError<E>
impl<E> Display for LedgerCommitError<E>
Source§impl<E> Error for LedgerCommitError<E>
impl<E> Error for LedgerCommitError<E>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl<E: PartialEq> PartialEq for LedgerCommitError<E>
impl<E: PartialEq> PartialEq for LedgerCommitError<E>
Source§fn eq(&self, other: &LedgerCommitError<E>) -> bool
fn eq(&self, other: &LedgerCommitError<E>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<E: Eq> Eq for LedgerCommitError<E>
impl<E> StructuralPartialEq for LedgerCommitError<E>
Auto Trait Implementations§
impl<E> Freeze for LedgerCommitError<E>where
E: Freeze,
impl<E> RefUnwindSafe for LedgerCommitError<E>where
E: RefUnwindSafe,
impl<E> Send for LedgerCommitError<E>where
E: Send,
impl<E> Sync for LedgerCommitError<E>where
E: Sync,
impl<E> Unpin for LedgerCommitError<E>where
E: Unpin,
impl<E> UnsafeUnpin for LedgerCommitError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for LedgerCommitError<E>where
E: UnwindSafe,
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