Enum evmodin::StatusCode [−][src]
pub enum StatusCode {
Show 17 variants
Success,
Failure,
Revert,
OutOfGas,
InvalidInstruction,
UndefinedInstruction,
StackOverflow,
StackUnderflow,
BadJumpDestination,
InvalidMemoryAccess,
CallDepthExceeded,
StaticModeViolation,
PrecompileFailure,
ContractValidationFailure,
ArgumentOutOfRange,
InsufficientBalance,
InternalError(String),
}
Expand description
Message status code.
Variants
Execution finished with success.
Generic execution failure.
Execution terminated with REVERT opcode.
In this case the amount of gas left MAY be non-zero and additional output data MAY be provided in ::evmc_result.
The execution has run out of gas.
The designated INVALID instruction has been hit during execution.
EIP-141 defines the instruction 0xfe as INVALID instruction to indicate execution abortion coming from high-level languages. This status code is reported in case this INVALID instruction has been encountered.
An undefined instruction has been encountered.
The execution has attempted to put more items on the EVM stack than the specified limit.
Execution of an opcode has required more items on the EVM stack.
Execution has violated the jump destination restrictions.
Tried to read outside memory bounds.
An example is RETURNDATACOPY reading past the available buffer.
Call depth has exceeded the limit (if any)
Tried to execute an operation which is restricted in static mode.
A call to a precompiled or system contract has ended with a failure.
An example: elliptic curve functions handed invalid EC points.
Contract validation has failed.
An argument to a state accessing method has a value outside of the accepted range of values.
The caller does not have enough funds for value transfer.
InternalError(String)
EVM implementation generic internal error.
Tuple Fields of InternalError
0: String
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for StatusCode
impl Send for StatusCode
impl Sync for StatusCode
impl Unpin for StatusCode
impl UnwindSafe for StatusCode
Blanket Implementations
Mutably borrows from an owned value. Read more