Enum jsonrpc_client_http::ErrorKind [−]
pub enum ErrorKind { Msg(String), Hyper(Error), Uri(UriError), ClientCreatorError, HttpError(StatusCode), RequestTimeout, 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
RequestTimeout
When the request times out.
TokioCoreError(&'static str)
When there was an error in the Tokio Core.
Methods
impl ErrorKind
impl ErrorKind
pub fn description(&self) -> &str
pub fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl From<ErrorKind> for Error
impl From<ErrorKind> for Error
impl Debug for ErrorKind
impl Debug for ErrorKind
impl Display for ErrorKind
impl Display for ErrorKind
impl<'a> From<&'a str> for ErrorKind
impl<'a> From<&'a str> for ErrorKind
impl From<String> for ErrorKind
impl From<String> for ErrorKind
impl From<Error> for ErrorKind
impl From<Error> for ErrorKind