Enum evm::executor::stack::PrecompileFailure [−][src]
pub enum PrecompileFailure {
Error {
exit_status: ExitError,
},
Revert {
exit_status: ExitRevert,
output: Vec<u8>,
cost: u64,
},
Fatal {
exit_status: ExitFatal,
},
}
Expand description
Data returned by a precompile in case of failure.
Variants
Reverts the state changes and consume all the gas.
Fields of Error
exit_status: ExitError
Reverts the state changes and consume the provided cost
.
Returns the provided error message.
Fields of Revert
Mark this failure as fatal, and all EVM execution stacks must be exited.
Fields of Fatal
exit_status: ExitFatal
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 PrecompileFailure
impl Send for PrecompileFailure
impl Sync for PrecompileFailure
impl Unpin for PrecompileFailure
impl UnwindSafe for PrecompileFailure
Blanket Implementations
Mutably borrows from an owned value. Read more