pub enum SignerMiddlewareError<M: Middleware, S: Signer> {
SignerError(S::Error),
MiddlewareError(M::Error),
NonceMissing,
GasPriceMissing,
GasMissing,
WrongSigner,
DifferentChainID,
}Expand description
Error thrown when the client interacts with the blockchain
Variants
SignerError(S::Error)
Thrown when the internal call to the signer fails
MiddlewareError(M::Error)
Thrown when an internal middleware errors
NonceMissing
Thrown if the nonce field is missing
GasPriceMissing
Thrown if the gas_price field is missing
GasMissing
Thrown if the gas field is missing
WrongSigner
Thrown if a signature is requested from a different address
DifferentChainID
Thrown if the signer’s chain_id is different than the chain_id of the transaction
Trait Implementations
sourceimpl<M: Debug + Middleware, S: Debug + Signer> Debug for SignerMiddlewareError<M, S>where
S::Error: Debug,
M::Error: Debug,
impl<M: Debug + Middleware, S: Debug + Signer> Debug for SignerMiddlewareError<M, S>where
S::Error: Debug,
M::Error: Debug,
sourceimpl<M: Middleware, S: Signer> Display for SignerMiddlewareError<M, S>
impl<M: Middleware, S: Signer> Display for SignerMiddlewareError<M, S>
sourceimpl<M: Middleware, S: Signer> Error for SignerMiddlewareError<M, S>where
Self: Debug + Display,
impl<M: Middleware, S: Signer> Error for SignerMiddlewareError<M, S>where
Self: Debug + Display,
1.30.0 · 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, S: Signer> FromErr<<M as Middleware>::Error> for SignerMiddlewareError<M, S>
impl<M: Middleware, S: Signer> FromErr<<M as Middleware>::Error> for SignerMiddlewareError<M, S>
fn from(src: M::Error) -> SignerMiddlewareError<M, S>
Auto Trait Implementations
impl<M, S> RefUnwindSafe for SignerMiddlewareError<M, S>where
<M as Middleware>::Error: RefUnwindSafe,
<S as Signer>::Error: RefUnwindSafe,
impl<M, S> Send for SignerMiddlewareError<M, S>
impl<M, S> Sync for SignerMiddlewareError<M, S>
impl<M, S> Unpin for SignerMiddlewareError<M, S>where
<M as Middleware>::Error: Unpin,
<S as Signer>::Error: Unpin,
impl<M, S> UnwindSafe for SignerMiddlewareError<M, S>where
<M as Middleware>::Error: UnwindSafe,
<S as Signer>::Error: UnwindSafe,
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