Enum pallet_evm::ExitReason [−]
pub enum ExitReason { Succeed(ExitSucceed), Error(ExitError), Revert(ExitRevert), Fatal(ExitFatal), }
Expand description
Exit reason.
Variants
Succeed(ExitSucceed)
Machine has succeeded.
Error(ExitError)
Machine returns a normal EVM error.
Revert(ExitRevert)
Machine encountered an explict revert.
Fatal(ExitFatal)
Machine encountered an error that is not supposed to be normal EVM errors, such as requiring too much memory to execute.
Implementations
impl ExitReason
impl ExitReason
Trait Implementations
impl Clone for ExitReason
impl Clone for ExitReason
pub fn clone(&self) -> ExitReason
pub fn clone(&self) -> ExitReason
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for ExitReason
impl Debug for ExitReason
impl Decode for ExitReason
impl Decode for ExitReason
impl<'de> Deserialize<'de> for ExitReason
impl<'de> Deserialize<'de> for ExitReason
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ExitReason, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ExitReason, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Encode for ExitReason
impl Encode for ExitReason
impl From<ExitError> for ExitReason
impl From<ExitError> for ExitReason
pub fn from(s: ExitError) -> ExitReason
pub fn from(s: ExitError) -> ExitReason
Performs the conversion.
impl From<ExitFatal> for ExitReason
impl From<ExitFatal> for ExitReason
pub fn from(s: ExitFatal) -> ExitReason
pub fn from(s: ExitFatal) -> ExitReason
Performs the conversion.
impl From<ExitRevert> for ExitReason
impl From<ExitRevert> for ExitReason
pub fn from(s: ExitRevert) -> ExitReason
pub fn from(s: ExitRevert) -> ExitReason
Performs the conversion.
impl From<ExitSucceed> for ExitReason
impl From<ExitSucceed> for ExitReason
pub fn from(s: ExitSucceed) -> ExitReason
pub fn from(s: ExitSucceed) -> ExitReason
Performs the conversion.
impl PartialEq<ExitReason> for ExitReason
impl PartialEq<ExitReason> for ExitReason
pub fn eq(&self, other: &ExitReason) -> bool
pub fn eq(&self, other: &ExitReason) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &ExitReason) -> bool
pub fn ne(&self, other: &ExitReason) -> bool
This method tests for !=
.
impl Serialize for ExitReason
impl Serialize for ExitReason
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl EncodeLike<ExitReason> for ExitReason
impl Eq for ExitReason
impl StructuralEq for ExitReason
impl StructuralPartialEq for ExitReason
Auto Trait Implementations
impl RefUnwindSafe for ExitReason
impl Send for ExitReason
impl Sync for ExitReason
impl Unpin for ExitReason
impl UnwindSafe for ExitReason
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
Convert from a value of T
into an equivalent instance of Self
. Read more
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of T
. Read more
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
The counterpart to unchecked_from
.
pub fn unique_saturated_into(self) -> T
pub fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of T
.