[−][src]Enum evmc_sys::evmc_status_code
The execution status code.
Successful execution is represented by ::EVMC_SUCCESS having value 0.
Positive values represent failures defined by VM specifications with generic ::EVMC_FAILURE code of value 1.
Status codes with negative values represent VM internal errors not provided by EVM specifications. These errors MUST not be passed back to the caller. They MAY be handled by the Client in predefined manner (see e.g. ::EVMC_REJECTED), otherwise internal errors are not recoverable. The generic representant of errors is ::EVMC_INTERNAL_ERROR but an EVM implementation MAY return negative status codes that are not defined in the EVMC documentation.
@note In case new status codes are needed, please create an issue or pull request in the EVMC repository (https://github.com/ethereum/evmc).
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.
The EIP-141 (https://github.com/ethereum/EIPs/blob/master/EIPS/eip-141.md) 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 (e.g. due to EVM 1.5 jump validity, Casper's purity checker or ewasm contract rules).
An argument to a state accessing method has a value outside of the accepted range of values.
A WebAssembly unreachable
instruction has been hit during execution.
A WebAssembly trap has been hit during execution. This can be for many reasons, including division by zero, validation errors, etc.
EVM implementation generic internal error.
The execution of the given code and/or message has been rejected by the EVM implementation.
This error SHOULD be used to signal that the EVM is not able to or willing to execute the given code type or message. If an EVM returns the ::EVMC_REJECTED status code, the Client MAY try to execute it in other EVM implementation. For example, the Client tries running a code in the EVM 1.5. If the code is not supported there, the execution falls back to the EVM 1.0.
The VM failed to allocate the amount of memory needed for execution.
Trait Implementations
impl Clone for evmc_status_code
[src]
fn clone(&self) -> evmc_status_code
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for evmc_status_code
[src]
impl Debug for evmc_status_code
[src]
impl Eq for evmc_status_code
[src]
impl Hash for evmc_status_code
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<evmc_status_code> for evmc_status_code
[src]
fn eq(&self, other: &evmc_status_code) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for evmc_status_code
[src]
impl StructuralPartialEq for evmc_status_code
[src]
Auto Trait Implementations
impl RefUnwindSafe for evmc_status_code
impl Send for evmc_status_code
impl Sync for evmc_status_code
impl Unpin for evmc_status_code
impl UnwindSafe for evmc_status_code
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,