Skip to main content

IntoEthApiError

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

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