#[non_exhaustive]pub enum LedgerDecodeError {
Wire(Error),
Key(StableKeyError),
Slot(MemoryManagerSlotError),
}Expand description
LedgerDecodeError
Typed source of a logical ledger decoding failure. Decoded rows still require ledger integrity validation before granting allocation authority.
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.
Wire(Error)
IC Wire refused syntax, trailing bytes or traversal budgets.
Key(StableKeyError)
A stored logical key violates its bounded grammar.
Slot(MemoryManagerSlotError)
A stored slot is outside the usable manager ID domain.
Trait Implementations§
Source§impl Clone for LedgerDecodeError
impl Clone for LedgerDecodeError
Source§impl Debug for LedgerDecodeError
impl Debug for LedgerDecodeError
Source§impl Display for LedgerDecodeError
impl Display for LedgerDecodeError
impl Eq for LedgerDecodeError
Source§impl Error for LedgerDecodeError
impl Error for LedgerDecodeError
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<Error> for LedgerDecodeError
impl From<Error> for LedgerDecodeError
Source§impl From<MemoryManagerSlotError> for LedgerDecodeError
impl From<MemoryManagerSlotError> for LedgerDecodeError
Source§fn from(source: MemoryManagerSlotError) -> Self
fn from(source: MemoryManagerSlotError) -> Self
Converts to this type from the input type.
Source§impl From<StableKeyError> for LedgerDecodeError
impl From<StableKeyError> for LedgerDecodeError
Source§fn from(source: StableKeyError) -> Self
fn from(source: StableKeyError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LedgerDecodeError
impl PartialEq for LedgerDecodeError
impl StructuralPartialEq for LedgerDecodeError
Auto Trait Implementations§
impl Freeze for LedgerDecodeError
impl RefUnwindSafe for LedgerDecodeError
impl Send for LedgerDecodeError
impl Sync for LedgerDecodeError
impl Unpin for LedgerDecodeError
impl UnsafeUnpin for LedgerDecodeError
impl UnwindSafe for LedgerDecodeError
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