Enum monto::client::NegotiationErrorKind
[−]
pub enum NegotiationErrorKind { Msg(String), Hyper(Error), Serde(Error), BadStatus(StatusCode), BadConfigURL(UrlError), NotCompatible(ProtocolVersion, ProtocolVersion), }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
Hyper(Error)
An error from the network.
Serde(Error)
An invalid response was received.
BadStatus(StatusCode)
A status other than Ok was received from the Broker, indicating that the Client is not compatible.
BadConfigURL(UrlError)
The given config had an invalid broker location specified.
NotCompatible(ProtocolVersion, ProtocolVersion)
The Client and Broker are not compatible.
Methods
impl NegotiationErrorKind
fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl Debug for NegotiationErrorKind
impl Display for NegotiationErrorKind
impl<'a> From<&'a str> for NegotiationErrorKind
impl From<String> for NegotiationErrorKind
impl From<NegotiationError> for NegotiationErrorKind
fn from(e: NegotiationError) -> Self
Performs the conversion.