Enum ethers_flashbots::RelayError
source · pub enum RelayError<S: Signer> {
RequestError(Error),
JsonRpcError(JsonRpcError),
ClientError {
text: String,
},
RequestSerdeJson(Error),
SignerError(S::Error),
ResponseSerdeJson {
err: Error,
text: String,
},
}Expand description
Errors for relay requests.
Variants§
RequestError(Error)
The request failed.
JsonRpcError(JsonRpcError)
The request could not be parsed.
ClientError
The request parameters were invalid.
RequestSerdeJson(Error)
The request could not be serialized.
SignerError(S::Error)
The request could not be signed.
ResponseSerdeJson
The response could not be deserialized.
Trait Implementations§
source§impl<S: Signer> Display for RelayError<S>
impl<S: Signer> Display for RelayError<S>
source§impl<S: Signer> Error for RelayError<S>where
Self: Debug + Display,
impl<S: Signer> Error for RelayError<S>where Self: Debug + Display,
source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<S: Signer> From<Error> for RelayError<S>
impl<S: Signer> From<Error> for RelayError<S>
source§impl<S: Signer> From<Error> for RelayError<S>
impl<S: Signer> From<Error> for RelayError<S>
source§fn from(source: ReqwestError) -> Self
fn from(source: ReqwestError) -> Self
Converts to this type from the input type.
source§impl<M: Middleware, S: Signer> From<RelayError<S>> for FlashbotsMiddlewareError<M, S>
impl<M: Middleware, S: Signer> From<RelayError<S>> for FlashbotsMiddlewareError<M, S>
source§fn from(source: RelayError<S>) -> Self
fn from(source: RelayError<S>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<S> !RefUnwindSafe for RelayError<S>
impl<S> Send for RelayError<S>
impl<S> Sync for RelayError<S>
impl<S> Unpin for RelayError<S>where <S as Signer>::Error: Unpin,
impl<S> !UnwindSafe for RelayError<S>
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