pub enum ExitError {
Exception(ExitException),
Reverted,
Fatal(ExitFatal),
}
Expand description
Exit reason.
Variants§
Exception(ExitException)
Machine returns a normal EVM error.
Reverted
Machine encountered an explicit revert.
Fatal(ExitFatal)
Machine encountered an error that is not supposed to be normal EVM errors, such as requiring too much memory to execute.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ExitError
impl<'de> Deserialize<'de> for ExitError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Error for ExitError
impl Error for ExitError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ExitError> for ExitResult
impl From<ExitError> for ExitResult
Source§impl From<ExitException> for ExitError
impl From<ExitException> for ExitError
Source§fn from(s: ExitException) -> Self
fn from(s: ExitException) -> Self
Converts to this type from the input type.
impl Eq for ExitError
impl StructuralPartialEq for ExitError
Auto Trait Implementations§
impl Freeze for ExitError
impl RefUnwindSafe for ExitError
impl Send for ExitError
impl Sync for ExitError
impl Unpin for ExitError
impl UnwindSafe for ExitError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> TrapConsume<T> for T
impl<T> TrapConsume<T> for T
Source§type Rest = Infallible
type Rest = Infallible
Rest type.
Source§fn consume(self) -> Result<T, Infallible>
fn consume(self) -> Result<T, Infallible>
Consume
T
to get Rest
.