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 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§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<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)