Trait Typed2718

Source
pub trait Typed2718 {
    // Required method
    fn ty(&self) -> u8;

    // Provided methods
    fn is_type(&self, ty: u8) -> bool { ... }
    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 { ... }
}
Available on crate feature network only.
Expand description

A trait that helps to determine the type of the transaction.

Required Methods§

Source

fn ty(&self) -> u8

Returns the EIP-2718 type flag.

Provided Methods§

Source

fn is_type(&self, ty: u8) -> bool

Returns true if the type matches the given type.

Source

fn is_legacy(&self) -> bool

Returns true if the type is a legacy transaction.

Source

fn is_eip2930(&self) -> bool

Returns true if the type is an EIP-2930 transaction.

Source

fn is_eip1559(&self) -> bool

Returns true if the type is an EIP-1559 transaction.

Source

fn is_eip4844(&self) -> bool

Returns true if the type is an EIP-4844 transaction.

Source

fn is_eip7702(&self) -> bool

Returns true if the type is an EIP-7702 transaction.

Implementations on Foreign Types§

Source§

impl Typed2718 for ReceiptEnvelope

Source§

fn ty(&self) -> u8

Source§

impl Typed2718 for TxEip4844Variant

Source§

fn ty(&self) -> u8

Source§

impl Typed2718 for TxEnvelope

Source§

fn ty(&self) -> u8

Source§

impl Typed2718 for TxType

Source§

fn ty(&self) -> u8

Source§

impl Typed2718 for PooledTransaction

Source§

fn ty(&self) -> u8

Source§

impl Typed2718 for TypedTransaction

Source§

fn ty(&self) -> u8

Source§

impl Typed2718 for TxEip1559

Source§

fn ty(&self) -> u8

Source§

impl Typed2718 for TxEip2930

Source§

fn ty(&self) -> u8

Source§

impl Typed2718 for TxEip4844

Source§

fn ty(&self) -> u8

Source§

impl Typed2718 for TxEip4844WithSidecar

Source§

fn ty(&self) -> u8

Source§

impl Typed2718 for TxEip7702

Source§

fn ty(&self) -> u8

Source§

impl Typed2718 for TxLegacy

Source§

fn ty(&self) -> u8

Source§

impl<'a, T> Typed2718 for &'a T
where T: 'a + Typed2718 + ?Sized,

Source§

fn ty(&self) -> u8

Source§

fn is_type(&self, ty: u8) -> bool

Source§

fn is_legacy(&self) -> bool

Source§

fn is_eip2930(&self) -> bool

Source§

fn is_eip1559(&self) -> bool

Source§

fn is_eip4844(&self) -> bool

Source§

fn is_eip7702(&self) -> bool

Source§

impl<R> Typed2718 for ReceiptWithBloom<R>
where R: Typed2718,

Source§

fn ty(&self) -> u8

Source§

impl<T> Typed2718 for Recovered<T>
where T: Typed2718,

Source§

fn ty(&self) -> u8

Source§

impl<T> Typed2718 for Transaction<T>
where T: Typed2718,

Source§

fn ty(&self) -> u8

Source§

impl<T> Typed2718 for WithOtherFields<T>
where T: Typed2718,

Available on crate feature serde only.
Source§

fn ty(&self) -> u8

Implementors§