reth_rpc_eth_api

Trait FromEvmError

pub trait FromEvmError: From<EthApiError> {
    // Required method
    fn from_evm_err<E>(err: EVMError<E>) -> Self
       where EthApiError: From<E>;
}
Expand description

Helper trait to convert from revm errors.

Required Methods§

fn from_evm_err<E>(err: EVMError<E>) -> Self
where EthApiError: From<E>,

Converts from a revm error.

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.

Implementors§

§

impl<T> FromEvmError for T
where T: From<EthApiError>,