Enum monto::client::RequestErrorKind
[−]
pub enum RequestErrorKind { Msg(String), Broker(BrokerGetError), Hyper(Error), Io(Error), Json(Error), }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
Broker(BrokerGetError)
An error from the Broker.
Hyper(Error)
An error connecting to the Broker.
Io(Error)
An I/O error.
Json(Error)
An invalid response (bad JSON) was received from the Broker.
Methods
impl RequestErrorKind
fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl Debug for RequestErrorKind
impl Display for RequestErrorKind
impl<'a> From<&'a str> for RequestErrorKind
impl From<String> for RequestErrorKind
impl From<RequestError> for RequestErrorKind
fn from(e: RequestError) -> Self
Performs the conversion.