pub enum ReadError {
TypeMismatch {
expected: Type,
got: Type,
},
InvalidAddValue {
ty: Type,
val: u8,
},
Unassigned {
major: u8,
add: u8,
},
Reserved {
major: u8,
add: u8,
},
Other(String),
}
Expand description
An error produced by reading CBOR data.
Variants§
TypeMismatch
An error for when the expected type does not match the received type.
InvalidAddValue
When the additional information is inconsistent with the major type.
Unassigned
The value found is unassigned.
Reserved
The value found is reserved.
Other(String)
Some other error occurred.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReadError
impl RefUnwindSafe for ReadError
impl Send for ReadError
impl Sync for ReadError
impl Unpin for ReadError
impl UnwindSafe for ReadError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)