Trait FromRecoveredTx

pub trait FromRecoveredTx<Tx> {
    // Required method
    fn from_recovered_tx(tx: &Tx, sender: Address) -> Self;
}
Expand description

Helper user-facing trait to allow implementing IntoTxEnv on instances of [Recovered].

Required Methods§

fn from_recovered_tx(tx: &Tx, sender: Address) -> Self

Builds a TxEnv from a transaction and a sender address.

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§

§

impl FromRecoveredTx<OpTxEnvelope> for OpTransaction<TxEnv>

§

fn from_recovered_tx(tx: &OpTxEnvelope, sender: Address) -> OpTransaction<TxEnv>

§

impl FromRecoveredTx<TransactionSigned> for TxEnv

§

fn from_recovered_tx(tx: &TransactionSigned, sender: Address) -> TxEnv

§

impl FromRecoveredTx<TxEip1559> for TxEnv

§

fn from_recovered_tx(tx: &TxEip1559, caller: Address) -> TxEnv

§

impl FromRecoveredTx<TxEip2930> for TxEnv

§

fn from_recovered_tx(tx: &TxEip2930, caller: Address) -> TxEnv

§

impl FromRecoveredTx<TxEip4844> for TxEnv

§

fn from_recovered_tx(tx: &TxEip4844, caller: Address) -> TxEnv

§

impl FromRecoveredTx<TxEip7702> for TxEnv

§

fn from_recovered_tx(tx: &TxEip7702, caller: Address) -> TxEnv

§

impl FromRecoveredTx<TxLegacy> for TxEnv

§

fn from_recovered_tx(tx: &TxLegacy, caller: Address) -> TxEnv

§

impl<Eip4844> FromRecoveredTx<EthereumTxEnvelope<Eip4844>> for TxEnv
where Eip4844: AsRef<TxEip4844>,

§

fn from_recovered_tx(tx: &EthereumTxEnvelope<Eip4844>, sender: Address) -> TxEnv

Implementors§

§

impl<TxEnv, T> FromRecoveredTx<&T> for TxEnv
where TxEnv: FromRecoveredTx<T>,

impl FromRecoveredTx<TransactionSigned> for TxEnv