Enum evm::executor::stack::PrecompileFailure
source · pub enum PrecompileFailure {
Error {
exit_status: ExitError,
},
Revert {
exit_status: ExitRevert,
output: Vec<u8>,
},
Fatal {
exit_status: ExitFatal,
},
}
Expand description
Data returned by a precompile in case of failure.
Variants§
Error
Reverts the state changes and consume all the gas.
Revert
Reverts the state changes. Returns the provided error message.
Fatal
Mark this failure as fatal, and all EVM execution stacks must be exited.
Trait Implementations§
source§impl Clone for PrecompileFailure
impl Clone for PrecompileFailure
source§fn clone(&self) -> PrecompileFailure
fn clone(&self) -> PrecompileFailure
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 PrecompileFailure
impl Debug for PrecompileFailure
source§impl From<ExitError> for PrecompileFailure
impl From<ExitError> for PrecompileFailure
source§fn from(error: ExitError) -> PrecompileFailure
fn from(error: ExitError) -> PrecompileFailure
Converts to this type from the input type.
source§impl PartialEq for PrecompileFailure
impl PartialEq for PrecompileFailure
source§fn eq(&self, other: &PrecompileFailure) -> bool
fn eq(&self, other: &PrecompileFailure) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PrecompileFailure
impl StructuralEq for PrecompileFailure
impl StructuralPartialEq for PrecompileFailure
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§
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