Struct bip_bencode::BencodeParseError []

pub struct BencodeParseError(_, _);

The Error type.

This struct is made of three things:

  • an ErrorKind which is used to determine the type of the error.
  • a backtrace, generated when the error is created.
  • an error chain, used for the implementation of Error::cause().

Methods

impl BencodeParseError

Constructs an error from a kind, and generates a backtrace.

Returns the kind of the error.

Iterates over the error chain.

Returns the backtrace associated with this error.

Methods from Deref<Target=BencodeParseErrorKind>

A string describing the error kind.

Trait Implementations

impl Debug for BencodeParseError

Formats the value using the given formatter.

impl ChainedError for BencodeParseError

Associated kind type.

Constructs an error from a kind, and generates a backtrace.

Returns the kind of the error.

Iterates over the error chain.

Returns the backtrace associated with this error.

impl Error for BencodeParseError

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl Display for BencodeParseError

Formats the value using the given formatter.

impl From<BencodeParseErrorKind> for BencodeParseError

Performs the conversion.

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

Performs the conversion.

impl From<String> for BencodeParseError

Performs the conversion.

impl Deref for BencodeParseError

The resulting type after dereferencing

The method called to dereference a value