pub type BlockingRequestError = Error<BlockingRequestSendError>;
Expand description
Error returned by BlockingClient::send_request
if the request fails or is canceled.
Aliased Type§
enum BlockingRequestError {
Dispatch(SendError<MaybeBatch<BlockingPendingRequest>>),
Canceled,
Response(ResponseError),
}
Variants§
Dispatch(SendError<MaybeBatch<BlockingPendingRequest>>)
The request failed to send or dispatch.
This wraps a user-defined error type representing transport or queueing failures.
Canceled
The request was canceled before it could complete.
This may happen if the request was dropped or explicitly aborted before a response arrived.
Response(ResponseError)
The server returned an error response for the request.
This wraps a deserialized Electrum JSON-RPC error object.