Enum bip_bencode::BencodeConvertErrorKind []

pub enum BencodeConvertErrorKind {
    Msg(String),
    MissingKey {
        key: Vec<u8>,
    },
    WrongType {
        key: Vec<u8>,
        expected_type: String,
    },
}

The kind of an error.

Variants

A convenient variant for String.

Fields of MissingKey

Fields of WrongType

Methods

impl BencodeConvertErrorKind

A string describing the error kind.

Trait Implementations

impl Debug for BencodeConvertErrorKind

Formats the value using the given formatter.

impl Display for BencodeConvertErrorKind

Formats the value using the given formatter. Read more

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

Performs the conversion.

impl From<String> for BencodeConvertErrorKind

Performs the conversion.

impl From<BencodeConvertError> for BencodeConvertErrorKind

Performs the conversion.