pub enum Error<M: Middleware, GO: GasOracle, DB: Database> {
Middleware(M::Error),
Database(DB::Error),
GasOracle(GO::Error, M::Error),
NonceTooLow {
current_nonce: U256,
expected_nonce: U256,
},
LatestBlockIsNone,
LatestBaseFeeIsNone,
IncompatibleGasOracle(&'static str),
}Variants§
Middleware(M::Error)
Database(DB::Error)
GasOracle(GO::Error, M::Error)
NonceTooLow
LatestBlockIsNone
LatestBaseFeeIsNone
IncompatibleGasOracle(&'static str)
Trait Implementations§
Source§impl<M: Debug + Middleware, GO: Debug + GasOracle, DB: Debug + Database> Debug for Error<M, GO, DB>
impl<M: Debug + Middleware, GO: Debug + GasOracle, DB: Debug + Database> Debug for Error<M, GO, DB>
Source§impl<M: Middleware, GO: GasOracle, DB: Database> Error for Error<M, GO, DB>
impl<M: Middleware, GO: GasOracle, DB: Database> Error for Error<M, GO, DB>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<M, GO, DB> Freeze for Error<M, GO, DB>
impl<M, GO, DB> RefUnwindSafe for Error<M, GO, DB>where
<M as Middleware>::Error: RefUnwindSafe,
<DB as Database>::Error: RefUnwindSafe,
<GO as GasOracle>::Error: RefUnwindSafe,
impl<M, GO, DB> Send for Error<M, GO, DB>
impl<M, GO, DB> Sync for Error<M, GO, DB>
impl<M, GO, DB> Unpin for Error<M, GO, DB>
impl<M, GO, DB> UnwindSafe for Error<M, GO, DB>where
<M as Middleware>::Error: UnwindSafe,
<DB as Database>::Error: UnwindSafe,
<GO as GasOracle>::Error: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more