Struct bip_bencode::BencodeConvertError
[−]
[src]
pub struct BencodeConvertError { // some fields omitted }
Error type generated when converting bencode objects.
Methods
impl BencodeConvertError
[src]
fn new(kind: BencodeConvertErrorKind, desc: &'static str) -> BencodeConvertError
fn with_key<T>(kind: BencodeConvertErrorKind, desc: &'static str, key: T) -> BencodeConvertError where T: Into<Cow<'static, str>>
fn kind(&self) -> BencodeConvertErrorKind
fn desc(&self) -> &'static str
fn key(&self) -> &str
Trait Implementations
impl Debug for BencodeConvertError
[src]
impl Hash for BencodeConvertError
[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 Eq for BencodeConvertError
[src]
impl PartialEq for BencodeConvertError
[src]
fn eq(&self, __arg_0: &BencodeConvertError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &BencodeConvertError) -> bool
This method tests for !=
.
impl Clone for BencodeConvertError
[src]
fn clone(&self) -> BencodeConvertError
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