Trait reth_rpc_eth_api::helpers::error::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§
sourcefn from_eth_err<E>(err: E) -> Selfwhere
EthApiError: From<E>,
fn from_eth_err<E>(err: E) -> Selfwhere
EthApiError: From<E>,
Converts from error via [EthApiError
].
Object Safety§
This trait is not object safe.