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.
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
RequestTimeoutWhen the request times out.
TokioCoreError(&'static str)When there was an error in the Tokio Core.
Methods
impl ErrorKind
impl ErrorKindpub fn description(&self) -> &str
pub fn description(&self) -> &strA string describing the error kind.
Trait Implementations
impl From<ErrorKind> for Error
impl From<ErrorKind> for Errorimpl Debug for ErrorKind
impl Debug for ErrorKindimpl Display for ErrorKind
impl Display for ErrorKindimpl<'a> From<&'a str> for ErrorKind
impl<'a> From<&'a str> for ErrorKindimpl From<String> for ErrorKind
impl From<String> for ErrorKindimpl From<Error> for ErrorKind
impl From<Error> for ErrorKind