Enum bip_select::errors::DiscoveryErrorKind []

pub enum DiscoveryErrorKind {
    Msg(String),
    InvalidMessage {
        info: PeerInfo,
        message: String,
    },
    // some variants omitted
}

The kind of an error.

Variants

A convenient variant for String.

Fields of InvalidMessage

Methods

impl DiscoveryErrorKind

A string describing the error kind.

Trait Implementations

impl Debug for DiscoveryErrorKind

Formats the value using the given formatter.

impl Display for DiscoveryErrorKind

Formats the value using the given formatter. Read more

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

Performs the conversion.

impl From<String> for DiscoveryErrorKind

Performs the conversion.

impl From<DiscoveryError> for DiscoveryErrorKind

Performs the conversion.