Enum monto::client::RequestErrorKind []

pub enum RequestErrorKind {
    Msg(String),
    Broker(BrokerGetError),
    Hyper(Error),
    Io(Error),
    Json(Error),
}

The kind of an error.

Variants

A convenient variant for String.

An error from the Broker.

An error connecting to the Broker.

An I/O error.

An invalid response (bad JSON) was received from the Broker.

Methods

impl RequestErrorKind

A string describing the error kind.

Trait Implementations

impl Debug for RequestErrorKind

Formats the value using the given formatter.

impl Display for RequestErrorKind

Formats the value using the given formatter. Read more

impl<'a> From<&'a str> for RequestErrorKind

Performs the conversion.

impl From<String> for RequestErrorKind

Performs the conversion.

impl From<RequestError> for RequestErrorKind

Performs the conversion.