Trait FromRecoveredTx

pub trait FromRecoveredTx<Tx> {
    // Required method
    fn from_recovered_tx(tx: &Tx, sender: Address) -> Self;
}
Available on crate feature evm only.
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<OpTransactionSigned> for OpTransaction<TxEnv>

§

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

§

impl FromRecoveredTx<TransactionSigned> for TxEnv

§

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

Implementors§

§

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

impl FromRecoveredTx<TransactionSigned> for TxEnv

impl FromRecoveredTx<OpTransactionSigned> for OpTransaction<TxEnv>