Skip to main content

TryIntoTxEnv

Trait TryIntoTxEnv 

Source
pub trait TryIntoTxEnv<T, EvmEnv> {
    type Err;

    // Required method
    fn try_into_tx_env(self, evm_env: &EvmEnv) -> Result<T, Self::Err>;
}
Available on crate feature node-api only.
Expand description

Converts a transaction request into an executable transaction environment.

Required Associated Types§

Source

type Err

Error returned by the conversion.

Required Methods§

Source

fn try_into_tx_env(self, evm_env: &EvmEnv) -> Result<T, Self::Err>

Performs the conversion.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<Env> TryIntoTxEnv<Recovered<TxEnvelope>, Env> for TransactionRequest
where Env: EvmEnv,