Enum bip_select::errors::DiscoveryErrorKind
[−]
pub enum DiscoveryErrorKind { Msg(String), InvalidMessage { info: PeerInfo, message: String, }, // some variants omitted }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
InvalidMessage
Fields of InvalidMessage
info: PeerInfo | |
message: String |
Methods
impl DiscoveryErrorKind
fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl Debug for DiscoveryErrorKind
impl Display for DiscoveryErrorKind
impl<'a> From<&'a str> for DiscoveryErrorKind
impl From<String> for DiscoveryErrorKind
impl From<DiscoveryError> for DiscoveryErrorKind
fn from(e: DiscoveryError) -> Self
Performs the conversion.