pub enum CborError {
Decode(String),
TrailingBytes,
RaggedVector(usize),
}Expand description
Failures decoding a CBOR payload.
Variants§
Decode(String)
The CBOR item failed to decode (truncated, type mismatch, …).
TrailingBytes
A complete CBOR item decoded but extra bytes followed it where none were expected (non-vector payloads have no trailing section).
RaggedVector(usize)
A trailing raw-vector section was not a whole number of 4-byte floats.
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)>
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 CborError
impl RefUnwindSafe for CborError
impl Send for CborError
impl Sync for CborError
impl Unpin for CborError
impl UnsafeUnpin 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