Trait AsEthApiError
pub trait AsEthApiError {
// Required method
fn as_err(&self) -> Option<&EthApiError>;
// Provided methods
fn is_gas_too_high(&self) -> bool { ... }
fn is_gas_too_low(&self) -> bool { ... }
fn as_simulate_error(&self) -> Option<EthSimulateError> { ... }
}Expand description
Helper trait to access wrapped core error.
Required Methods§
Provided Methods§
fn is_gas_too_high(&self) -> bool
fn is_gas_too_high(&self) -> bool
Returns true if error is
[RpcInvalidTransactionError::GasTooHigh].
fn is_gas_too_low(&self) -> bool
fn is_gas_too_low(&self) -> bool
Returns true if error is
[RpcInvalidTransactionError::GasTooLow].
fn as_simulate_error(&self) -> Option<EthSimulateError>
fn as_simulate_error(&self) -> Option<EthSimulateError>
Returns [EthSimulateError] if this error maps to a simulate-specific error code.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".