reth_rpc_eth_api

Trait FromEthApiError

Source
pub trait FromEthApiError: From<EthApiError> {
    // Required method
    fn from_eth_err<E>(err: E) -> Self
       where EthApiError: From<E>;
}
Expand description

Helper trait to wrap core EthApiError.

Required Methods§

Source

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

Converts from error via EthApiError.

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> FromEthApiError for T
where T: From<EthApiError>,