Skip to main content

ExecutableTxParts

Trait ExecutableTxParts 

Source
pub trait ExecutableTxParts<TxEnv, T> {
    type Recovered: RecoveredTx<T>;

    // Required method
    fn into_parts(self) -> (TxEnv, Self::Recovered);
}
Available on crate feature evm only.
Expand description

Helper trait to split an executable transaction into an EVM transaction environment and its recovered transaction accessor.

Required Associated Types§

Source

type Recovered: RecoveredTx<T>

The recovered transaction accessor type.

Required Methods§

Source

fn into_parts(self) -> (TxEnv, Self::Recovered)

Converts the transaction into the executable transaction environment and recovered transaction accessor.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<L, R, TxEnv, T> ExecutableTxParts<TxEnv, T> for Either<L, R>
where L: ExecutableTxParts<TxEnv, T>, R: ExecutableTxParts<TxEnv, T>,

Source§

type Recovered = Either<<L as ExecutableTxParts<TxEnv, T>>::Recovered, <R as ExecutableTxParts<TxEnv, T>>::Recovered>

Source§

fn into_parts( self, ) -> (TxEnv, <Either<L, R> as ExecutableTxParts<TxEnv, T>>::Recovered)

Source§

impl<TxEnv, Tx, T> ExecutableTxParts<TxEnv, Tx> for (TxEnv, T)
where T: RecoveredTx<Tx>,

Source§

type Recovered = T

Source§

fn into_parts( self, ) -> (TxEnv, <(TxEnv, T) as ExecutableTxParts<TxEnv, Tx>>::Recovered)

Implementors§

Source§

impl ExecutableTxParts<Recovered<TxEnvelope>, EthereumTxEnvelope<TxEip4844>> for ExecutableRecoveredTx

Source§

type Recovered = Recovered<EthereumTxEnvelope<TxEip4844>>

Source§

impl<T, TxEnv> ExecutableTxParts<TxEnv, T> for Recovered<&T>
where T: Clone, TxEnv: FromRecoveredTx<T>,

Source§

impl<T, TxEnv> ExecutableTxParts<TxEnv, T> for Recovered<T>
where T: Clone, TxEnv: FromRecoveredTx<T>,

Source§

impl<T, TxEnv> ExecutableTxParts<TxEnv, T> for WithEncoded<Recovered<T>>
where T: Clone, TxEnv: FromTxWithEncoded<T>,

Source§

impl<TxEnv, T, Tx> ExecutableTxParts<TxEnv, Tx> for WithTxEnv<TxEnv, T>
where T: RecoveredTx<Tx>,