[][src]Enum serde_bencoded::DeError

pub enum DeError {
    Message(String),
    UnexpectedEof,
    SyntaxError(u8Option<u8>),
    ParseIntegerError(ParseIntegerError),
    Utf8Error(Utf8Error),
    ExpectedString,
    ExpectedDictionary,
    ExpectedEndOfDictionary,
    ExpectedUnitStructName,
    ExpectedInteger,
    ExpectedCharString,
}

Variants

Message(String)
UnexpectedEof
SyntaxError(u8Option<u8>)

(got byte, expected byte if some)

ParseIntegerError(ParseIntegerError)

Wrapper for ParseIntegerError

Utf8Error(Utf8Error)

Wrapper for Utf8Error

ExpectedString
ExpectedDictionary
ExpectedEndOfDictionary
ExpectedUnitStructName
ExpectedInteger
ExpectedCharString

String with length at most 4

Trait Implementations

impl Clone for DeError[src]

impl Debug for DeError[src]

impl Display for DeError[src]

impl Error for DeError[src]

impl Error for DeError[src]

impl From<Utf8Error> for DeError[src]

Auto Trait Implementations

impl RefUnwindSafe for DeError

impl Send for DeError

impl Sync for DeError

impl Unpin for DeError

impl UnwindSafe for DeError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.