Trait TryIntoTxEnv
pub trait TryIntoTxEnv<T, BlockEnv = BlockEnv> {
type Err;
// Required method
fn try_into_tx_env<Spec>(
self,
evm_env: &EvmEnv<Spec, BlockEnv>,
) -> Result<T, Self::Err>;
}Available on crate feature
rpc only.Expand description
Converts self into T.
Should create an executable transaction environment using [TransactionRequest].
Required Associated Types§
type Err
type Err
An associated error that can occur during the conversion.
Required Methods§
fn try_into_tx_env<Spec>(
self,
evm_env: &EvmEnv<Spec, BlockEnv>,
) -> Result<T, Self::Err>
fn try_into_tx_env<Spec>( self, evm_env: &EvmEnv<Spec, BlockEnv>, ) -> Result<T, Self::Err>
Performs the conversion.
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.