Enum bip_bencode::BencodeParseErrorKind []

pub enum BencodeParseErrorKind {
    Msg(String),
    BytesEmpty {
        pos: usize,
    },
    InvalidByte {
        pos: usize,
    },
    InvalidIntNoDelimiter {
        pos: usize,
    },
    InvalidIntNegativeZero {
        pos: usize,
    },
    InvalidIntZeroPadding {
        pos: usize,
    },
    InvalidIntParseError {
        pos: usize,
    },
    InvalidKeyOrdering {
        pos: usize,
        key: Vec<u8>,
    },
    InvalidKeyDuplicates {
        pos: usize,
        key: Vec<u8>,
    },
    InvalidLengthNegative {
        pos: usize,
    },
    InvalidLengthOverflow {
        pos: usize,
    },
    InvalidRecursionExceeded {
        pos: usize,
        max: usize,
    },
}

The kind of an error.

Variants

A convenient variant for String.

Fields of BytesEmpty

Fields of InvalidByte

Fields of InvalidIntNoDelimiter

Fields of InvalidIntNegativeZero

Fields of InvalidIntZeroPadding

Fields of InvalidIntParseError

Fields of InvalidKeyOrdering

Fields of InvalidKeyDuplicates

Fields of InvalidLengthNegative

Fields of InvalidLengthOverflow

Fields of InvalidRecursionExceeded

Methods

impl BencodeParseErrorKind

A string describing the error kind.

Trait Implementations

impl Debug for BencodeParseErrorKind

Formats the value using the given formatter.

impl Display for BencodeParseErrorKind

Formats the value using the given formatter. Read more

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

Performs the conversion.

impl From<String> for BencodeParseErrorKind

Performs the conversion.

impl From<BencodeParseError> for BencodeParseErrorKind

Performs the conversion.