Enum cbor::decoder::DecodeError
[−]
[src]
pub enum DecodeError {
DuplicateKey(Box<Debug>),
IntOverflow(u64),
InvalidKey(Value),
InvalidTag(Value),
InvalidUtf8(Utf8Error),
IoError(Error),
TooLong {
max: usize,
actual: u64,
},
TooNested,
UnexpectedEOF,
UnexpectedType {
datatype: Type,
info: u8,
},
UnexpectedBreak,
}Variants
DuplicateKey | An object contains the same key multiple times | ||||
IntOverflow | The signed integer is greater that its max value | ||||
InvalidKey | The decoded | ||||
InvalidTag | The type of | ||||
InvalidUtf8 | The string is not encoded in UTF-8 | ||||
IoError | Some I/O error | ||||
TooLong | The maximum configured length is exceeded Fields
| ||||
TooNested |
| ||||
UnexpectedEOF | The end of file has been encountered unexpectedly | ||||
UnexpectedType | And unexpected type has been encountered Fields
| ||||
UnexpectedBreak | A break was encountered at some unexpected point while decoding an indefinite object. |