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);
}
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, Self::Recovered)

Source§

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

Source§

type Recovered = Recovered<&T>

Source§

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

Source§

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

Source§

type Recovered = Recovered<T>

Source§

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

Source§

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

Source§

type Recovered = WithEncoded<Recovered<T>>

Source§

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

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, Self::Recovered)

Implementors§

Source§

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