pub enum ActorExecutionErrorReplyReason {
PreChargeGasLimitExceeded(PreChargeGasOperation),
PrepareMemory(ActorPrepareMemoryError),
Environment(TrimmedString),
Trap(TrapExplanation),
}
Expand description
Reason of execution error
Variants§
PreChargeGasLimitExceeded(PreChargeGasOperation)
Not enough gas to perform an operation during precharge.
PrepareMemory(ActorPrepareMemoryError)
Prepare memory error
Environment(TrimmedString)
Backend error
Trap(TrapExplanation)
Trap explanation
Implementations§
source§impl ActorExecutionErrorReplyReason
impl ActorExecutionErrorReplyReason
sourcepub fn as_simple(&self) -> SimpleExecutionError
pub fn as_simple(&self) -> SimpleExecutionError
Convert self into gear_core_errors::SimpleExecutionError
.
Trait Implementations§
source§impl Decode for ActorExecutionErrorReplyReason
impl Decode for ActorExecutionErrorReplyReason
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.
§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
§fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where I: Input,
Attempt to skip the encoded value from input. Read more
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
source§impl Encode for ActorExecutionErrorReplyReason
impl Encode for ActorExecutionErrorReplyReason
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.
§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.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl Ord for ActorExecutionErrorReplyReason
impl Ord for ActorExecutionErrorReplyReason
source§fn cmp(&self, other: &ActorExecutionErrorReplyReason) -> Ordering
fn cmp(&self, other: &ActorExecutionErrorReplyReason) -> 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<ActorExecutionErrorReplyReason> for ActorExecutionErrorReplyReason
impl PartialEq<ActorExecutionErrorReplyReason> for ActorExecutionErrorReplyReason
source§fn eq(&self, other: &ActorExecutionErrorReplyReason) -> bool
fn eq(&self, other: &ActorExecutionErrorReplyReason) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ActorExecutionErrorReplyReason> for ActorExecutionErrorReplyReason
impl PartialOrd<ActorExecutionErrorReplyReason> for ActorExecutionErrorReplyReason
source§fn partial_cmp(
&self,
other: &ActorExecutionErrorReplyReason
) -> Option<Ordering>
fn partial_cmp( &self, other: &ActorExecutionErrorReplyReason ) -> 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<ActorExecutionErrorReplyReason> for ActorExecutionErrorReplyReason
impl Eq for ActorExecutionErrorReplyReason
impl StructuralEq for ActorExecutionErrorReplyReason
impl StructuralPartialEq for ActorExecutionErrorReplyReason
Auto Trait Implementations§
impl RefUnwindSafe for ActorExecutionErrorReplyReason
impl Send for ActorExecutionErrorReplyReason
impl Sync for ActorExecutionErrorReplyReason
impl Unpin for ActorExecutionErrorReplyReason
impl UnwindSafe for ActorExecutionErrorReplyReason
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
§impl<T> DecodeAll for Twhere
T: Decode,
impl<T> DecodeAll for Twhere T: Decode,
§fn decode_all(input: &mut &[u8]) -> Result<T, Error>
fn decode_all(input: &mut &[u8]) -> Result<T, Error>
Decode
Self
and consume all of the given input data. Read more§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