#[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 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 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§impl PartialOrd for SimpleExecutionError
impl PartialOrd for SimpleExecutionError
impl Copy for SimpleExecutionError
impl Eq for SimpleExecutionError
impl StructuralPartialEq for SimpleExecutionError
Auto Trait Implementations§
impl Freeze for SimpleExecutionError
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