Enum jsonrpc_client_http::ErrorKind
[−]
pub enum ErrorKind {
Msg(String),
Hyper(Error),
Uri(UriError),
ClientCreatorError,
HttpError(StatusCode),
TokioCoreError(&'static str),
}The kind of an error.
Variants
Msg(String)A convenient variant for String.
Hyper(Error)An error occured in Hyper.
Uri(UriError)The string given was not a valid URI.
ClientCreatorErrorWhen there was an error creating the Hyper Client from the given creator.
HttpError(StatusCode)When the http status code of the response is not 200 OK
TokioCoreError(&'static str)When there was an error in the Tokio Core.
Methods
impl ErrorKind
fn description(&self) -> &str
A string describing the error kind.