pub enum Action {
Call(CallAction),
Create(CreateAction),
Selfdestruct(SelfdestructAction),
Reward(RewardAction),
}
Expand description
Represents the various types of actions recorded during tracing
Variants§
Call(CallAction)
Regular call
Create(CreateAction)
A CREATE call
Selfdestruct(SelfdestructAction)
Parity style traces never renamed suicide to selfdestruct: https://eips.ethereum.org/EIPS/eip-6
For compatibility reasons, this is serialized as suicide
: https://github.com/paradigmxyz/reth/issues/3721
Reward(RewardAction)
Rewards if any (pre POS)
Implementations§
source§impl Action
impl Action
sourcepub const fn is_selfdestruct(&self) -> bool
pub const fn is_selfdestruct(&self) -> bool
Returns true if this is a selfdestruct action
sourcepub const fn as_call(&self) -> Option<&CallAction>
pub const fn as_call(&self) -> Option<&CallAction>
Returns the CallAction
if it is Action::Call
sourcepub const fn as_create(&self) -> Option<&CreateAction>
pub const fn as_create(&self) -> Option<&CreateAction>
Returns the CreateAction
if it is Action::Create
sourcepub const fn as_selfdestruct(&self) -> Option<&SelfdestructAction>
pub const fn as_selfdestruct(&self) -> Option<&SelfdestructAction>
Returns the SelfdestructAction
if it is Action::Selfdestruct
sourcepub const fn as_reward(&self) -> Option<&RewardAction>
pub const fn as_reward(&self) -> Option<&RewardAction>
Returns the RewardAction
if it is Action::Reward
sourcepub const fn kind(&self) -> ActionType
pub const fn kind(&self) -> ActionType
Returns what kind of action this is
Trait Implementations§
source§impl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
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
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl !Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 more