ToTxEnv

Trait ToTxEnv 

pub trait ToTxEnv<TxEnv> {
    // Required method
    fn to_tx_env(&self) -> TxEnv;
}
Available on crate feature evm only.
Expand description

A helper trait to allow implementing IntoTxEnv for types that build transaction environment by cloning data.

Required Methods§

fn to_tx_env(&self) -> TxEnv

Builds a TxEnv from self.

Implementations on Foreign Types§

§

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

§

fn to_tx_env(&self) -> TxEnv

Implementors§

§

impl<L, R, TxEnv> ToTxEnv<TxEnv> for Either<L, R>
where L: ToTxEnv<TxEnv>, R: ToTxEnv<TxEnv>,

§

impl<T, TxEnv> ToTxEnv<TxEnv> for Recovered<T>
where TxEnv: FromRecoveredTx<T>,

§

impl<T, TxEnv> ToTxEnv<TxEnv> for WithEncoded<&Recovered<T>>
where TxEnv: FromTxWithEncoded<T>,

§

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

§

impl<TxEnv, T> ToTxEnv<TxEnv> for WithTxEnv<TxEnv, T>
where TxEnv: Clone,