Enum jsonrpc_client_http::ErrorKind
[−]
pub enum ErrorKind { Msg(String), Hyper(Error), Uri(UriError), ClientCreatorError, HttpError(StatusCode), TokioCoreError(&'static str), // some variants omitted }
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.
ClientCreatorError
When 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
pub fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl From<ErrorKind> for Error
impl Debug for ErrorKind
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more