Trait Transaction
pub trait Transaction:
Send
+ Sync
+ Unpin
+ Clone
+ Debug
+ Eq
+ PartialEq
+ Hash
+ Transaction
+ InMemorySize
+ MaybeSerde
+ MaybeArbitrary {
// Provided methods
fn is_legacy(&self) -> bool { ... }
fn is_eip2930(&self) -> bool { ... }
fn is_eip1559(&self) -> bool { ... }
fn is_eip4844(&self) -> bool { ... }
fn is_eip7702(&self) -> bool { ... }
}
Expand description
Abstraction of a transaction.
Provided Methods§
fn is_eip2930(&self) -> bool
fn is_eip2930(&self) -> bool
Returns true if the transaction is an EIP-2930 transaction.
fn is_eip1559(&self) -> bool
fn is_eip1559(&self) -> bool
Returns true if the transaction is an EIP-1559 transaction.
fn is_eip4844(&self) -> bool
fn is_eip4844(&self) -> bool
Returns true if the transaction is an EIP-4844 transaction.
fn is_eip7702(&self) -> bool
fn is_eip7702(&self) -> bool
Returns true if the transaction is an EIP-7702 transaction.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.