Enum ethers_flashbots::RelayError
source · pub enum RelayError<S: Signer> {
RequestError(ReqwestError),
JsonRpcError(JsonRpcError),
ClientError {
text: String,
},
RequestSerdeJson(Error),
SignerError(S::Error),
ResponseSerdeJson {
err: Error,
text: String,
},
}Expand description
Errors for relay requests.
Variants§
RequestError(ReqwestError)
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§fn from(source: ReqwestError) -> Self
fn from(source: ReqwestError) -> Self
Converts to this type from the input type.
source§impl<S: Signer> From<Error> for RelayError<S>
impl<S: Signer> From<Error> for RelayError<S>
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.