Skip to main content

FromEthApiError

Trait FromEthApiError 

Source
pub trait FromEthApiError: From<EthApiError> {
    // Required method
    fn from_eth_err<E>(err: E) -> Self
       where EthApiError: From<E>;
}
Available on crate feature rpc only.
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".

Implementors§

Source§

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