Enum gstd::errors::SimpleExecutionError
source · #[repr(u8)]pub enum SimpleExecutionError {
RanOutOfGas = 0,
MemoryOverflow = 1,
BackendError = 2,
UserspacePanic = 3,
UnreachableInstruction = 4,
StackLimitExceeded = 5,
Unsupported = 255,
}Expand description
Simplified error occurred during execution.
Variants§
RanOutOfGas = 0
Message ran out of gas while executing.
MemoryOverflow = 1
Program has reached memory limit while executing.
BackendError = 2
Execution failed with backend error that couldn’t been caught.
UserspacePanic = 3
Execution failed with userspace panic.
UnreachableInstruction = 4
Execution failed with unreachable instruction call.
StackLimitExceeded = 5
Program has reached stack limit while executing.
Unsupported = 255
Unsupported reason of execution error. Variant exists for backward compatibility.
Trait Implementations§
source§impl Clone for SimpleExecutionError
impl Clone for SimpleExecutionError
source§fn clone(&self) -> SimpleExecutionError
fn clone(&self) -> SimpleExecutionError
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 SimpleExecutionError
impl Debug for SimpleExecutionError
source§impl Decode for SimpleExecutionError
impl Decode for SimpleExecutionError
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<SimpleExecutionError, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<SimpleExecutionError, Error>where
__CodecInputEdqy: Input,
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 Default for SimpleExecutionError
impl Default for SimpleExecutionError
source§fn default() -> SimpleExecutionError
fn default() -> SimpleExecutionError
Returns the “default value” for a type. Read more
source§impl Display for SimpleExecutionError
impl Display for SimpleExecutionError
source§impl Encode for SimpleExecutionError
impl Encode for SimpleExecutionError
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>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy>( &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<SimpleExecutionError> for ErrorReplyReason
impl From<SimpleExecutionError> for ErrorReplyReason
source§fn from(original: SimpleExecutionError) -> ErrorReplyReason
fn from(original: SimpleExecutionError) -> ErrorReplyReason
Converts to this type from the input type.
source§impl From<SimpleExecutionError> for SignalCode
impl From<SimpleExecutionError> for SignalCode
source§fn from(original: SimpleExecutionError) -> SignalCode
fn from(original: SimpleExecutionError) -> SignalCode
Converts to this type from the input type.
source§impl Hash for SimpleExecutionError
impl Hash for SimpleExecutionError
source§impl Ord for SimpleExecutionError
impl Ord for SimpleExecutionError
source§fn cmp(&self, other: &SimpleExecutionError) -> Ordering
fn cmp(&self, other: &SimpleExecutionError) -> 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 SimpleExecutionError
impl PartialEq for SimpleExecutionError
source§fn eq(&self, other: &SimpleExecutionError) -> bool
fn eq(&self, other: &SimpleExecutionError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for SimpleExecutionError
impl PartialOrd for SimpleExecutionError
source§fn partial_cmp(&self, other: &SimpleExecutionError) -> Option<Ordering>
fn partial_cmp(&self, other: &SimpleExecutionError) -> 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 moresource§impl Sequence for SimpleExecutionError
impl Sequence for SimpleExecutionError
source§const CARDINALITY: usize = 7usize
const CARDINALITY: usize = 7usize
Number of values of type
Self. Read moresource§fn next(&self) -> Option<SimpleExecutionError>
fn next(&self) -> Option<SimpleExecutionError>
source§fn previous(&self) -> Option<SimpleExecutionError>
fn previous(&self) -> Option<SimpleExecutionError>
source§impl TypeInfo for SimpleExecutionError
impl TypeInfo for SimpleExecutionError
impl Copy for SimpleExecutionError
impl EncodeLike for SimpleExecutionError
impl Eq for SimpleExecutionError
impl StructuralEq for SimpleExecutionError
impl StructuralPartialEq for SimpleExecutionError
Auto Trait Implementations§
impl RefUnwindSafe for SimpleExecutionError
impl Send for SimpleExecutionError
impl Sync for SimpleExecutionError
impl Unpin for SimpleExecutionError
impl UnwindSafe for SimpleExecutionError
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