reth::rpc::api::servers::eth

Trait FromEvmError

Source
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§

Source

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§

Source§

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