pub struct TxInput { /* private fields */ }Expand description
Raw EVM transaction with its associated logs.
The succeeded flag allows callers to pass all transactions in a block and
have the processor skip reverted ones, avoiding a separate pre-filter.
Implementations§
Source§impl TxInput
impl TxInput
pub fn new( hash: Bytes, from: Bytes, to: Bytes, index: u64, logs: Vec<LogInput>, succeeded: bool, ) -> Self
pub fn hash(&self) -> &Bytes
pub fn from(&self) -> &Bytes
pub fn to(&self) -> &Bytes
pub fn index(&self) -> u64
pub fn logs(&self) -> &[LogInput]
pub fn succeeded(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TxInput
impl RefUnwindSafe for TxInput
impl Send for TxInput
impl Sync for TxInput
impl Unpin for TxInput
impl UnsafeUnpin for TxInput
impl UnwindSafe for TxInput
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> 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 more