Enum pipe_chain::parser::bencode::Error
source · pub enum Error {
Int(ParseIntError),
InvalidNumber,
InvalidStringSize,
Incomplete(Incomplete),
MaxDepth,
InvalidKey(Bencode),
DictNoValue,
TagByte(TagByteError),
TagBytes(TagBytesError),
}Expand description
Bencode parsing error
Variants§
Int(ParseIntError)
parse int error
InvalidNumber
Invalid number
InvalidStringSize
Invalid string size
Incomplete(Incomplete)
more bytes needed
MaxDepth
parse max depth reached
InvalidKey(Bencode)
invalid dict key
DictNoValue
dick has a key but no value
TagByte(TagByteError)
tag error
TagBytes(TagBytesError)
tag error
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<Incomplete> for Error
impl From<Incomplete> for Error
source§fn from(value: Incomplete) -> Self
fn from(value: Incomplete) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
source§fn from(value: ParseIntError) -> Self
fn from(value: ParseIntError) -> Self
Converts to this type from the input type.
source§impl From<TagByteError> for Error
impl From<TagByteError> for Error
source§fn from(value: TagByteError) -> Self
fn from(value: TagByteError) -> Self
Converts to this type from the input type.
source§impl From<TagBytesError> for Error
impl From<TagBytesError> for Error
source§fn from(value: TagBytesError) -> Self
fn from(value: TagBytesError) -> Self
Converts to this type from the input type.
source§impl PartialEq for Error
impl PartialEq for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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