pub enum CBORError {
Underrun,
UnsupportedHeaderValue(u8),
NonCanonicalNumeric,
InvalidSimpleValue,
InvalidString(Utf8Error),
UnusedData(usize),
MisorderedMapKey,
DuplicateMapKey,
MissingMapKey,
OutOfRange,
WrongType,
WrongTag(Tag, Tag),
}Expand description
An error encountered while decoding or parsing CBOR.
Variants§
Underrun
UnsupportedHeaderValue(u8)
NonCanonicalNumeric
InvalidSimpleValue
InvalidString(Utf8Error)
UnusedData(usize)
MisorderedMapKey
DuplicateMapKey
MissingMapKey
OutOfRange
WrongType
WrongTag(Tag, Tag)
Trait Implementations§
source§impl Error for CBORError
impl Error for CBORError
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()
Auto Trait Implementations§
impl RefUnwindSafe for CBORError
impl Send for CBORError
impl Sync for CBORError
impl Unpin for CBORError
impl UnwindSafe for CBORError
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