Trait reth::core::rpc::eth::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.

Object Safety§

This trait is not object safe.

Implementors§

source§

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