pub enum LedgerPayloadEnvelopeError {
Truncated {
actual: usize,
minimum: usize,
},
BadMagic {
found: [u8; 8],
},
PayloadTooLarge {
len: u64,
},
PayloadLengthOverflow {
len: usize,
},
LengthMismatch {
declared: usize,
actual: usize,
},
}Expand description
LedgerPayloadEnvelopeError
Logical payload envelope could not be classified before ledger decode.
Variants§
Truncated
Not enough bytes for an envelope header.
BadMagic
Magic bytes do not identify an ic-memory ledger payload.
PayloadTooLarge
Declared payload length does not fit in this platform’s address space.
PayloadLengthOverflow
Declared payload length overflowed the total envelope length.
LengthMismatch
Declared payload length does not match the bytes present.
Trait Implementations§
Source§impl Clone for LedgerPayloadEnvelopeError
impl Clone for LedgerPayloadEnvelopeError
Source§fn clone(&self) -> LedgerPayloadEnvelopeError
fn clone(&self) -> LedgerPayloadEnvelopeError
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 LedgerPayloadEnvelopeError
impl Debug for LedgerPayloadEnvelopeError
Source§impl Display for LedgerPayloadEnvelopeError
impl Display for LedgerPayloadEnvelopeError
Source§impl Error for LedgerPayloadEnvelopeError
impl Error for LedgerPayloadEnvelopeError
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 PartialEq for LedgerPayloadEnvelopeError
impl PartialEq for LedgerPayloadEnvelopeError
Source§fn eq(&self, other: &LedgerPayloadEnvelopeError) -> bool
fn eq(&self, other: &LedgerPayloadEnvelopeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LedgerPayloadEnvelopeError
impl StructuralPartialEq for LedgerPayloadEnvelopeError
Auto Trait Implementations§
impl Freeze for LedgerPayloadEnvelopeError
impl RefUnwindSafe for LedgerPayloadEnvelopeError
impl Send for LedgerPayloadEnvelopeError
impl Sync for LedgerPayloadEnvelopeError
impl Unpin for LedgerPayloadEnvelopeError
impl UnsafeUnpin for LedgerPayloadEnvelopeError
impl UnwindSafe for LedgerPayloadEnvelopeError
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