pub enum TrapExplanation {
GasLimitExceeded,
ForbiddenFunction,
ProgramAllocOutOfBounds,
UnrecoverableExt(UnrecoverableExtError),
Panic(TrimmedString),
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(TrimmedString)
Unknown
Trait Implementations§
source§impl Clone for TrapExplanation
impl Clone for TrapExplanation
source§fn clone(&self) -> TrapExplanation
fn clone(&self) -> TrapExplanation
Returns a copy 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 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 size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
source§fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> 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<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 TerminationReason
impl From<TrapExplanation> for TerminationReason
source§fn from(trap: TrapExplanation) -> Self
fn from(trap: TrapExplanation) -> Self
Converts to this type from the input type.
source§impl From<TrimmedString> for TrapExplanation
impl From<TrimmedString> for TrapExplanation
source§fn from(original: TrimmedString) -> TrapExplanation
fn from(original: TrimmedString) -> TrapExplanation
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<TrapExplanation> for TrapExplanation
impl PartialEq<TrapExplanation> for TrapExplanation
source§fn eq(&self, other: &TrapExplanation) -> bool
fn eq(&self, other: &TrapExplanation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TrapExplanation> for TrapExplanation
impl PartialOrd<TrapExplanation> for TrapExplanation
source§fn partial_cmp(&self, other: &TrapExplanation) -> Option<Ordering>
fn partial_cmp(&self, other: &TrapExplanation) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl EncodeLike<TrapExplanation> for TrapExplanation
impl Eq for TrapExplanation
impl StructuralEq for TrapExplanation
impl StructuralPartialEq for TrapExplanation
Auto Trait Implementations§
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
source§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere T: Decode,
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more