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

Trait FromEthApiError

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§

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§

§

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