pub enum MiddlewareError<M: Middleware> {
GasOracleError(GasOracleError),
MiddlewareError(M::Error),
UnsupportedTxType,
}Variants
Trait Implementations
sourceimpl<M: Debug + Middleware> Debug for MiddlewareError<M>where
M::Error: Debug,
impl<M: Debug + Middleware> Debug for MiddlewareError<M>where
M::Error: Debug,
sourceimpl<M: Middleware> Display for MiddlewareError<M>
impl<M: Middleware> Display for MiddlewareError<M>
sourceimpl<M: Middleware> Error for MiddlewareError<M>where
Self: Debug + Display,
impl<M: Middleware> Error for MiddlewareError<M>where
Self: Debug + Display,
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl<M: Middleware> From<GasOracleError> for MiddlewareError<M>
impl<M: Middleware> From<GasOracleError> for MiddlewareError<M>
sourcefn from(source: GasOracleError) -> Self
fn from(source: GasOracleError) -> Self
Converts to this type from the input type.
sourceimpl<M: Middleware> FromErr<<M as Middleware>::Error> for MiddlewareError<M>
impl<M: Middleware> FromErr<<M as Middleware>::Error> for MiddlewareError<M>
fn from(src: M::Error) -> MiddlewareError<M>
Auto Trait Implementations
impl<M> !RefUnwindSafe for MiddlewareError<M>
impl<M> Send for MiddlewareError<M>
impl<M> Sync for MiddlewareError<M>
impl<M> Unpin for MiddlewareError<M>where
<M as Middleware>::Error: Unpin,
impl<M> !UnwindSafe for MiddlewareError<M>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more