Enum monto::broker::NewBrokerErrorKind
[−]
pub enum NewBrokerErrorKind { Msg(String), ServiceConnect(ServiceConnectErrorKind), Notify(NotifyError), }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
ServiceConnect(ServiceConnectErrorKind)
An error connecting to a service.
Notify(NotifyError)
An error setting up the notifier.
Methods
impl NewBrokerErrorKind
fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl Debug for NewBrokerErrorKind
impl Display for NewBrokerErrorKind
impl From<ServiceConnectErrorKind> for NewBrokerErrorKind
An error connecting to a service.
fn from(e: ServiceConnectErrorKind) -> Self
Performs the conversion.
impl<'a> From<&'a str> for NewBrokerErrorKind
impl From<String> for NewBrokerErrorKind
impl From<NewBrokerError> for NewBrokerErrorKind
fn from(e: NewBrokerError) -> Self
Performs the conversion.