Trait IsTyped2718

Source
pub trait IsTyped2718 {
    // Required method
    fn is_type(type_id: u8) -> bool;
}
Expand description

Trait for checking if a transaction envelope supports a given EIP-2718 type ID.

Required Methods§

Source

fn is_type(type_id: u8) -> bool

Returns true if the given type ID corresponds to a supported typed 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.

Implementations on Foreign Types§

Source§

impl IsTyped2718 for ReceiptEnvelope

Source§

fn is_type(type_id: u8) -> bool

Source§

impl IsTyped2718 for TxType

Source§

fn is_type(type_id: u8) -> bool

Source§

impl IsTyped2718 for TxEip1559

Source§

fn is_type(type_id: u8) -> bool

Source§

impl IsTyped2718 for TxEip2930

Source§

fn is_type(type_id: u8) -> bool

Source§

impl IsTyped2718 for TxEip4844

Source§

fn is_type(type_id: u8) -> bool

Source§

impl IsTyped2718 for TxEip7702

Source§

fn is_type(type_id: u8) -> bool

Source§

impl IsTyped2718 for TxLegacy

Source§

fn is_type(type_id: u8) -> bool

Source§

impl<L, R> IsTyped2718 for Either<L, R>
where L: IsTyped2718, R: IsTyped2718,

Source§

fn is_type(type_id: u8) -> bool

Source§

impl<T> IsTyped2718 for EthereumTxEnvelope<T>

Source§

fn is_type(type_id: u8) -> bool

Source§

impl<T> IsTyped2718 for EthereumTypedTransaction<T>

Source§

fn is_type(type_id: u8) -> bool

Implementors§