pub enum LedgerCommitError {
Recovery(CommitRecoveryError),
PayloadEnvelope(LedgerPayloadEnvelopeError),
UnsupportedEnvelopeVersion {
found: u16,
supported: u16,
},
PhysicalLogicalGenerationMismatch {
physical_generation: u64,
logical_generation: u64,
},
PayloadEnvelopeLedgerMismatch {
envelope_ledger_schema_version: u32,
ledger_schema_version: u32,
envelope_physical_format_id: u32,
ledger_physical_format_id: u32,
},
Codec(String),
Compatibility(LedgerCompatibilityError),
Integrity(LedgerIntegrityError),
}Expand description
LedgerCommitError
Failure to recover or commit a logical allocation ledger.
Variants§
Recovery(CommitRecoveryError)
Protected physical commit recovery failed.
PayloadEnvelope(LedgerPayloadEnvelopeError)
Logical ledger payload envelope could not be decoded.
UnsupportedEnvelopeVersion
Logical ledger payload envelope version is unsupported.
PhysicalLogicalGenerationMismatch
Physical slot generation and decoded logical ledger generation disagree.
Fields
PayloadEnvelopeLedgerMismatch
Logical payload envelope and decoded ledger headers disagree.
Fields
Codec(String)
Built-in ledger 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 Clone for LedgerCommitError
impl Clone for LedgerCommitError
Source§fn clone(&self) -> LedgerCommitError
fn clone(&self) -> LedgerCommitError
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 LedgerCommitError
impl Debug for LedgerCommitError
Source§impl Display for LedgerCommitError
impl Display for LedgerCommitError
Source§impl Error for LedgerCommitError
impl Error for LedgerCommitError
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<P> From<LedgerCommitError> for RuntimeBootstrapError<P>
impl<P> From<LedgerCommitError> for RuntimeBootstrapError<P>
Source§fn from(source: LedgerCommitError) -> Self
fn from(source: LedgerCommitError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LedgerCommitError
impl PartialEq for LedgerCommitError
Source§fn eq(&self, other: &LedgerCommitError) -> bool
fn eq(&self, other: &LedgerCommitError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LedgerCommitError
impl StructuralPartialEq for LedgerCommitError
Auto Trait Implementations§
impl Freeze for LedgerCommitError
impl RefUnwindSafe for LedgerCommitError
impl Send for LedgerCommitError
impl Sync for LedgerCommitError
impl Unpin for LedgerCommitError
impl UnsafeUnpin for LedgerCommitError
impl UnwindSafe for LedgerCommitError
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