Enum spinel_pack::UnpackingError
source · 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)>
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
source§fn eq(&self, other: &UnpackingError) -> bool
fn eq(&self, other: &UnpackingError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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