pub enum ActorExecutionErrorReplyReason {
PreChargeGasLimitExceeded(PreChargeGasOperation),
PrepareMemory(ActorPrepareMemoryError),
Environment,
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
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.
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 Encode for ActorExecutionErrorReplyReason
impl Encode for ActorExecutionErrorReplyReason
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 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 for ActorExecutionErrorReplyReason
impl PartialEq for ActorExecutionErrorReplyReason
Source§fn eq(&self, other: &ActorExecutionErrorReplyReason) -> bool
fn eq(&self, other: &ActorExecutionErrorReplyReason) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl PartialOrd for ActorExecutionErrorReplyReason
impl PartialOrd for ActorExecutionErrorReplyReason
impl EncodeLike for ActorExecutionErrorReplyReason
impl Eq for ActorExecutionErrorReplyReason
impl StructuralPartialEq for ActorExecutionErrorReplyReason
Auto Trait Implementations§
impl Freeze for ActorExecutionErrorReplyReason
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