Enum jsonrpc::simple_http::Error
source · [−]pub enum Error {
InvalidUrl {
url: String,
reason: &'static str,
},
SocketError(Error),
HttpParseError,
HttpErrorCode(u16),
Timeout,
Json(Error),
}
Expand description
Error that can happen when sending requests
Variants
InvalidUrl
An invalid URL was passed.
SocketError(Error)
An error occurred on the socket layer
HttpParseError
The HTTP header of the response couldn’t be parsed
HttpErrorCode(u16)
Unexpected HTTP error code (non-200)
Timeout
We didn’t receive a complete response till the deadline ran out
Json(Error)
JSON parsing error.