pub enum UnpackingError {
InvalidInternalLength,
InvalidValue,
UnterminatedString,
}
Expand description
Error type for unpacking operations.
These errors end up being wrapped in an anyhow::Error
type.
Variants§
InvalidInternalLength
A length field in the data overflowed the length of its container.
InvalidValue
One or more of the encoded fields contained an invalid value.
UnterminatedString
The text string was not zero terminated.
Trait Implementations§
Source§impl Debug for UnpackingError
impl Debug for UnpackingError
Source§impl Display for UnpackingError
impl Display for UnpackingError
Source§impl Error for UnpackingError
impl Error for UnpackingError
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()
Source§impl Hash for UnpackingError
impl Hash for UnpackingError
Source§impl PartialEq for UnpackingError
impl PartialEq for UnpackingError
impl Eq for UnpackingError
impl StructuralPartialEq for UnpackingError
Auto Trait Implementations§
impl Freeze for UnpackingError
impl RefUnwindSafe for UnpackingError
impl Send for UnpackingError
impl Sync for UnpackingError
impl Unpin for UnpackingError
impl UnwindSafe for UnpackingError
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