pub enum StableCellPayloadError {
NotStableCell,
UnsupportedVersion {
version: u8,
},
InvalidLength {
value_len: u64,
available_bytes: u64,
},
LengthOverflow {
value_len: u64,
},
}Expand description
StableCellPayloadError
Stable-cell payload decode failure.
Variants§
NotStableCell
Memory contents do not start with the stable-cell marker.
UnsupportedVersion
Stable-cell format version is not supported.
InvalidLength
Stable-cell header length does not fit inside the memory.
LengthOverflow
Stable-cell length cannot be represented on the current host.
Trait Implementations§
Source§impl Clone for StableCellPayloadError
impl Clone for StableCellPayloadError
Source§fn clone(&self) -> StableCellPayloadError
fn clone(&self) -> StableCellPayloadError
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 StableCellPayloadError
impl Debug for StableCellPayloadError
Source§impl Display for StableCellPayloadError
impl Display for StableCellPayloadError
Source§impl Error for StableCellPayloadError
impl Error for StableCellPayloadError
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<StableCellPayloadError> for StableCellLedgerError
impl From<StableCellPayloadError> for StableCellLedgerError
Source§fn from(source: StableCellPayloadError) -> Self
fn from(source: StableCellPayloadError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StableCellPayloadError
impl PartialEq for StableCellPayloadError
Source§fn eq(&self, other: &StableCellPayloadError) -> bool
fn eq(&self, other: &StableCellPayloadError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for StableCellPayloadError
impl StructuralPartialEq for StableCellPayloadError
Auto Trait Implementations§
impl Freeze for StableCellPayloadError
impl RefUnwindSafe for StableCellPayloadError
impl Send for StableCellPayloadError
impl Sync for StableCellPayloadError
impl Unpin for StableCellPayloadError
impl UnsafeUnpin for StableCellPayloadError
impl UnwindSafe for StableCellPayloadError
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