pub enum Eip658Value {
Eip658(bool),
PostState(B256),
}
Expand description
Captures the result of a transaction execution.
Variants§
Implementations§
Source§impl Eip658Value
impl Eip658Value
Sourcepub const fn coerce_status(&self) -> bool
pub const fn coerce_status(&self) -> bool
Returns true if the transaction was successful OR if the transaction is pre-EIP-658.
Sourcepub fn coerced_eip658(&mut self)
pub fn coerced_eip658(&mut self)
Coerce this variant into a Eip658Value::Eip658
with Self::coerce_status
.
Sourcepub const fn is_post_state(&self) -> bool
pub const fn is_post_state(&self) -> bool
Returns true if the transaction was a pre-EIP-658 transaction.
Sourcepub const fn is_eip658(&self) -> bool
pub const fn is_eip658(&self) -> bool
Returns true if the transaction was a post-[EIP-658] transaction.
Sourcepub const fn as_post_state(&self) -> Option<B256>
pub const fn as_post_state(&self) -> Option<B256>
Fallibly convert to the post state.
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for Eip658Value
impl<'arbitrary> Arbitrary<'arbitrary> for Eip658Value
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured
this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured
this type
needs to construct itself. Read moreSource§impl Clone for Eip658Value
impl Clone for Eip658Value
Source§fn clone(&self) -> Eip658Value
fn clone(&self) -> Eip658Value
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 Eip658Value
impl Debug for Eip658Value
Source§impl Decodable for Eip658Value
impl Decodable for Eip658Value
Source§impl Default for Eip658Value
impl Default for Eip658Value
Source§impl<'de> Deserialize<'de> for Eip658Value
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Eip658Value
Available on crate feature
serde
only.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 Encodable for Eip658Value
impl Encodable for Eip658Value
Source§impl From<FixedBytes<32>> for Eip658Value
impl From<FixedBytes<32>> for Eip658Value
Source§impl From<bool> for Eip658Value
impl From<bool> for Eip658Value
Source§impl PartialEq for Eip658Value
impl PartialEq for Eip658Value
Source§impl Serialize for Eip658Value
Available on crate feature serde
only.
impl Serialize for Eip658Value
Available on crate feature
serde
only.impl Copy for Eip658Value
impl Eq for Eip658Value
impl StructuralPartialEq for Eip658Value
Auto Trait Implementations§
impl Freeze for Eip658Value
impl RefUnwindSafe for Eip658Value
impl Send for Eip658Value
impl Sync for Eip658Value
impl Unpin for Eip658Value
impl UnwindSafe for Eip658Value
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 33 bytes
Size for each variant:
Eip658
: 1 bytePostState
: 32 bytes