pub enum ReceiptError {
TooShort {
got: usize,
},
ReservedNonZero,
InvalidPhase(u8),
InvalidCompatImpact(u8),
InvalidFailureStage(u8),
}Expand description
Receipt parse error.
Variants§
TooShort
Input was shorter than RECEIPT_SIZE_LEGACY bytes.
ReservedNonZero
Reserved trailing region was non-zero. likely corrupt or stale.
InvalidPhase(u8)
phase byte is outside the documented enum range (0..=4).
InvalidCompatImpact(u8)
compat_impact byte is outside the documented enum range (0..=3).
InvalidFailureStage(u8)
failure_stage byte is outside the documented enum range (0..=5).
Trait Implementations§
Source§impl Clone for ReceiptError
impl Clone for ReceiptError
Source§fn clone(&self) -> ReceiptError
fn clone(&self) -> ReceiptError
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 ReceiptError
impl Debug for ReceiptError
Source§impl From<ReceiptError> for SdkError
impl From<ReceiptError> for SdkError
Source§fn from(e: ReceiptError) -> Self
fn from(e: ReceiptError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ReceiptError
impl PartialEq for ReceiptError
Source§fn eq(&self, other: &ReceiptError) -> bool
fn eq(&self, other: &ReceiptError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ReceiptError
impl Eq for ReceiptError
impl StructuralPartialEq for ReceiptError
Auto Trait Implementations§
impl Freeze for ReceiptError
impl RefUnwindSafe for ReceiptError
impl Send for ReceiptError
impl Sync for ReceiptError
impl Unpin for ReceiptError
impl UnsafeUnpin for ReceiptError
impl UnwindSafe for ReceiptError
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