Enum monto::client::NegotiationErrorKind []

pub enum NegotiationErrorKind {
    Msg(String),
    Hyper(Error),
    Serde(Error),
    BadStatus(StatusCode),
    BadConfigURL(UrlError),
    NotCompatible(ProtocolVersionProtocolVersion),
    // some variants omitted
}

The kind of an error.

Variants

A convenient variant for String.

An error from the network.

An invalid response was received.

A status other than Ok was received from the Broker, indicating that the Client is not compatible.

The given config had an invalid broker location specified.

The Client and Broker are not compatible.

Methods

impl NegotiationErrorKind

A string describing the error kind.

Trait Implementations

impl Debug for NegotiationErrorKind

Formats the value using the given formatter.

impl Display for NegotiationErrorKind

Formats the value using the given formatter. Read more

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

Performs the conversion.

impl From<String> for NegotiationErrorKind

Performs the conversion.

impl From<NegotiationError> for NegotiationErrorKind

Performs the conversion.