Enum revm::ExitError[][src]

pub enum ExitError {
Show 23 variants StackUnderflow, StackOverflow, InvalidJump, InvalidRange, DesignatedInvalid, CreateCollision, CreateContractLimit, CreateContractWithEF, OutOfOffset, OutOfGas, OutOfFund, GasPriceLessThenBasefee, LackOfFundForGasLimit, CallerGasLimitMoreThenBlock, GasMaxFeeGreaterThanPriorityFee, RejectCallerWithCode, OverflowPayment, PCUnderflow, CreateEmpty, OpcodeNotFound, CallNotAllowedInsideStatic, Other(Cow<'static, str>), Precompile(PrecompileError),
}
Expand description

Exit error reason.

Variants

StackUnderflow

Trying to pop from an empty stack.

StackOverflow

Trying to push into a stack over stack limit.

InvalidJump

Jump destination is invalid.

InvalidRange

An opcode accesses memory region, but the region is invalid.

DesignatedInvalid

Encountered the designated invalid opcode.

CreateCollision

Create opcode encountered collision (runtime).

CreateContractLimit

Create init code exceeds limit (runtime).

CreateContractWithEF

Create contract that begins with EF

OutOfOffset

An opcode accesses external information, but the request is off offset limit (runtime).

OutOfGas

Execution runs out of gas (runtime).

OutOfFund

Not enough fund to start the execution (runtime).

GasPriceLessThenBasefee

Effective gas price is less then basefee

LackOfFundForGasLimit

Caller does not have enought funds to cover full spending of gas_limit

CallerGasLimitMoreThenBlock

Caller gas_limit is greater then block gas limit

GasMaxFeeGreaterThanPriorityFee

GasMaxFee greater than priority fee

RejectCallerWithCode

EIP-3607: Reject transactions from senders with deployed code

OverflowPayment

gas_limit*effective gas oveflows

PCUnderflow

PC underflowed (unused).

CreateEmpty

Attempt to create an empty account (runtime, unused).

OpcodeNotFound

opcode not found,

CallNotAllowedInsideStatic

calling CALL inside static call

Other(Cow<'static, str>)

Other normal errors.

Tuple Fields of Other

0: Cow<'static, str>
Precompile(PrecompileError)

Tuple Fields of Precompile

0: PrecompileError

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.