pub enum BencodeConvertErrorKind {
Msg(String),
MissingKey {
key: Vec<u8>,
},
WrongType {
key: Vec<u8>,
expected_type: String,
},
// some variants omitted
}Expand description
The kind of an error.
Variants§
Implementations§
source§impl BencodeConvertErrorKind
impl BencodeConvertErrorKind
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
A string describing the error kind.
Trait Implementations§
source§impl Debug for BencodeConvertErrorKind
impl Debug for BencodeConvertErrorKind
source§impl Display for BencodeConvertErrorKind
impl Display for BencodeConvertErrorKind
source§impl<'a> From<&'a str> for BencodeConvertErrorKind
impl<'a> From<&'a str> for BencodeConvertErrorKind
source§impl From<BencodeConvertError> for BencodeConvertErrorKind
impl From<BencodeConvertError> for BencodeConvertErrorKind
source§fn from(e: BencodeConvertError) -> Self
fn from(e: BencodeConvertError) -> Self
Converts to this type from the input type.
source§impl From<BencodeConvertErrorKind> for BencodeConvertError
impl From<BencodeConvertErrorKind> for BencodeConvertError
source§fn from(e: BencodeConvertErrorKind) -> Self
fn from(e: BencodeConvertErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for BencodeConvertErrorKind
impl Send for BencodeConvertErrorKind
impl Sync for BencodeConvertErrorKind
impl Unpin for BencodeConvertErrorKind
impl UnwindSafe for BencodeConvertErrorKind
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more