pub enum BencodeParseError {
BytesEmpty {
pos: usize,
},
InvalidByte {
pos: usize,
},
InvalidIntNoDelimiter {
pos: usize,
},
InvalidIntNegativeZero {
pos: usize,
},
InvalidIntZeroPadding {
pos: usize,
},
InvalidIntParseError {
pos: usize,
},
InvalidKeyOrdering {
pos: usize,
key: Vec<u8>,
},
InvalidKeyDuplicates {
pos: usize,
key: Vec<u8>,
},
InvalidLengthNegative {
pos: usize,
},
InvalidLengthOverflow {
pos: usize,
},
InvalidRecursionExceeded {
pos: usize,
max: usize,
},
}
Variants§
BytesEmpty
InvalidByte
InvalidIntNoDelimiter
InvalidIntNegativeZero
InvalidIntZeroPadding
InvalidIntParseError
InvalidKeyOrdering
InvalidKeyDuplicates
InvalidLengthNegative
InvalidLengthOverflow
InvalidRecursionExceeded
Trait Implementations§
Source§impl Debug for BencodeParseError
impl Debug for BencodeParseError
Source§impl Display for BencodeParseError
impl Display for BencodeParseError
Source§impl Error for BencodeParseError
impl Error for BencodeParseError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for BencodeParseError
impl RefUnwindSafe for BencodeParseError
impl Send for BencodeParseError
impl Sync for BencodeParseError
impl Unpin for BencodeParseError
impl UnwindSafe for BencodeParseError
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