Trait reth_rpc_eth_api::helpers::error::AsEthApiError

source ·
pub trait AsEthApiError {
    // Required method
    fn as_err(&self) -> Option<&EthApiError>;

    // Provided method
    fn is_gas_too_high(&self) -> bool { ... }
}
Expand description

Helper trait to access wrapped core error.

Required Methods§

source

fn as_err(&self) -> Option<&EthApiError>

Returns reference to EthApiError, if this an error variant inherited from core functionality.

Provided Methods§

Implementations on Foreign Types§

source§

impl AsEthApiError for EthApiError

Implementors§