#[non_exhaustive]pub enum LedgerIntegrityError {
LimitExceeded {
resource: &'static str,
limit: usize,
},
DuplicateStableKey {
stable_key: StableKey,
},
DuplicateSlot {
slot: MemoryManagerSlot,
},
NonemptyGenesis,
}Expand description
LedgerIntegrityError
Decoded ledger violates current ownership invariants.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LimitExceeded
Current structural recovery ceiling exceeded.
DuplicateStableKey
Stable key appears in more than one retained allocation record.
DuplicateSlot
Memory ID appears in more than one retained allocation record.
Fields
§
slot: MemoryManagerSlotNonemptyGenesis
Commit counter zero is reserved for empty genesis.
Trait Implementations§
Source§impl Clone for LedgerIntegrityError
impl Clone for LedgerIntegrityError
Source§impl Debug for LedgerIntegrityError
impl Debug for LedgerIntegrityError
Source§impl Display for LedgerIntegrityError
impl Display for LedgerIntegrityError
impl Eq for LedgerIntegrityError
Source§impl Error for LedgerIntegrityError
impl Error for LedgerIntegrityError
1.30.0 · 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 From<LedgerIntegrityError> for AllocationStageError
impl From<LedgerIntegrityError> for AllocationStageError
Source§fn from(source: LedgerIntegrityError) -> Self
fn from(source: LedgerIntegrityError) -> Self
Converts to this type from the input type.
Source§impl From<LedgerIntegrityError> for AllocationReservationError
impl From<LedgerIntegrityError> for AllocationReservationError
Source§fn from(source: LedgerIntegrityError) -> Self
fn from(source: LedgerIntegrityError) -> Self
Converts to this type from the input type.
Source§impl From<LedgerIntegrityError> for AllocationRetirementError
impl From<LedgerIntegrityError> for AllocationRetirementError
Source§fn from(source: LedgerIntegrityError) -> Self
fn from(source: LedgerIntegrityError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LedgerIntegrityError
impl PartialEq for LedgerIntegrityError
impl StructuralPartialEq for LedgerIntegrityError
Auto Trait Implementations§
impl Freeze for LedgerIntegrityError
impl RefUnwindSafe for LedgerIntegrityError
impl Send for LedgerIntegrityError
impl Sync for LedgerIntegrityError
impl Unpin for LedgerIntegrityError
impl UnsafeUnpin for LedgerIntegrityError
impl UnwindSafe for LedgerIntegrityError
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