pub enum TrapExplanation {
GasLimitExceeded,
ForbiddenFunction,
ProgramAllocOutOfBounds,
UnrecoverableExt(UnrecoverableExtError),
Panic(LimitedStr<'static>),
Unknown,
}
Variants§
GasLimitExceeded
An error occurs in attempt to charge more gas than available during execution.
ForbiddenFunction
An error occurs in attempt to call forbidden sys-call.
ProgramAllocOutOfBounds
The error occurs when a program tries to allocate more memory than allowed.
UnrecoverableExt(UnrecoverableExtError)
Panic(LimitedStr<'static>)
Unknown
Trait Implementations§
Source§impl Clone for TrapExplanation
impl Clone for TrapExplanation
Source§fn clone(&self) -> TrapExplanation
fn clone(&self) -> TrapExplanation
Returns a duplicate of the value. Read more
1.0.0 · 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 TrapExplanation
impl Debug for TrapExplanation
Source§impl Decode for TrapExplanation
impl Decode for TrapExplanation
Source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Attempt to deserialise the value from input.
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl Display for TrapExplanation
impl Display for TrapExplanation
Source§impl Encode for TrapExplanation
impl Encode for TrapExplanation
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl From<LimitedStr<'static>> for TrapExplanation
impl From<LimitedStr<'static>> for TrapExplanation
Source§fn from(original: LimitedStr<'static>) -> TrapExplanation
fn from(original: LimitedStr<'static>) -> TrapExplanation
Converts to this type from the input type.
Source§impl From<TrapExplanation> for ActorTerminationReason
impl From<TrapExplanation> for ActorTerminationReason
Source§fn from(original: TrapExplanation) -> ActorTerminationReason
fn from(original: TrapExplanation) -> ActorTerminationReason
Converts to this type from the input type.
Source§impl From<TrapExplanation> for UndefinedTerminationReason
impl From<TrapExplanation> for UndefinedTerminationReason
Source§fn from(trap: TrapExplanation) -> Self
fn from(trap: TrapExplanation) -> Self
Converts to this type from the input type.
Source§impl From<UnrecoverableExtError> for TrapExplanation
impl From<UnrecoverableExtError> for TrapExplanation
Source§fn from(original: UnrecoverableExtError) -> TrapExplanation
fn from(original: UnrecoverableExtError) -> TrapExplanation
Converts to this type from the input type.
Source§impl Ord for TrapExplanation
impl Ord for TrapExplanation
Source§fn cmp(&self, other: &TrapExplanation) -> Ordering
fn cmp(&self, other: &TrapExplanation) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TrapExplanation
impl PartialEq for TrapExplanation
Source§impl PartialOrd for TrapExplanation
impl PartialOrd for TrapExplanation
impl EncodeLike for TrapExplanation
impl Eq for TrapExplanation
impl StructuralPartialEq for TrapExplanation
Auto Trait Implementations§
impl Freeze for TrapExplanation
impl RefUnwindSafe for TrapExplanation
impl Send for TrapExplanation
impl Sync for TrapExplanation
impl Unpin for TrapExplanation
impl UnwindSafe for TrapExplanation
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