Enum cbor::ReadError
[−]
[src]
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), }
An error produced by reading CBOR data.
Variants
TypeMismatch
An error for when the expected type does not match the received type.
Fields of TypeMismatch
expected: Type | Expected CBOR type. |
got: Type | Received CBOR type. |
InvalidAddValue
When the additional information is inconsistent with the major type.
Fields of InvalidAddValue
ty: Type | CBOR type. |
val: u8 | Additional information value. |
Unassigned
The value found is unassigned.
Fields of Unassigned
major: u8 | CBOR major type value. |
add: u8 | Additional information value. |
Reserved
The value found is reserved.
Fields of Reserved
major: u8 | CBOR major type value. |
add: u8 | Additional information value. |
Other(String)
Some other error occurred.
Trait Implementations
impl Clone for ReadError
[src]
fn clone(&self) -> ReadError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more