Trait reth_rpc_eth_api::helpers::error::IntoEthApiError

source ·
pub trait IntoEthApiError: Into<EthApiError> {
    // Required method
    fn into_eth_err<E>(self) -> E
       where E: FromEthApiError;
}
Expand description

Helper trait to wrap core [EthApiError].

Required Methods§

source

fn into_eth_err<E>(self) -> E
where E: FromEthApiError,

Converts into error via [EthApiError].

Object Safety§

This trait is not object safe.

Implementors§

source§

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