Struct bip_metainfo::error::ParseError [] [src]

pub struct ParseError {
    // some fields omitted
}

Error raised as a result of parsing a torrent file.

Methods

impl ParseError
[src]

fn new<D>(kind: ParseErrorKind, detail: D) -> ParseError where D: Into<Cow<'static, str>>

fn kind(&self) -> ParseErrorKind

fn detail(&self) -> &str

Trait Implementations

impl PartialEq for ParseError
[src]

fn eq(&self, __arg_0: &ParseError) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &ParseError) -> bool

This method tests for !=.

impl Eq for ParseError
[src]

impl Hash for ParseError
[src]

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

Feeds this value into the state given, updating the hasher as necessary.

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0

Feeds a slice of this type into the state provided.

impl Debug for ParseError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for ParseError
[src]

fn clone(&self) -> ParseError

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl From<Error> for ParseError
[src]

fn from(err: Error) -> ParseError

Performs the conversion.

impl From<Error> for ParseError
[src]

fn from(err: Error) -> ParseError

Performs the conversion.