pub enum DecodingError {
UnexpectedFin,
IntegerOverflow,
InvalidString,
DynamicNotSupported,
IndexNotfound,
}Expand description
Error during decoding operation.
Generated from Decoder::decode.
Variants§
UnexpectedFin
During decoding input data raeched unexpected EOF.
IntegerOverflow
Integer decoding produced an overflow.
InvalidString
String decoding is invalid (UTF-8 fail or Huffman).
DynamicNotSupported
Encoded data requires dynamic table. It is not supported.
IndexNotfound
Index is out-of-bound in the static table.
Trait Implementations§
Source§impl Debug for DecodingError
impl Debug for DecodingError
Source§impl Display for DecodingError
impl Display for DecodingError
Source§impl Error for DecodingError
impl Error for DecodingError
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 DecodingError
impl RefUnwindSafe for DecodingError
impl Send for DecodingError
impl Sync for DecodingError
impl Unpin for DecodingError
impl UnwindSafe for DecodingError
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