Enum serde_cbor::error::ErrorCode
[−]
[src]
pub enum ErrorCode { TrailingBytes, UnexpectedEOF, StopCode, TooLarge, UnknownByte(u8), UnknownField(String), MissingField(&'static str), InvalidSyntax(String), }
The errors that can arise while parsing a CBOR stream.
Variants
TrailingBytes
The data source contains trailing bytes after all values were read.
UnexpectedEOF
The data source contains not enough bytes to parse a value.
StopCode
Break stop code encountered.
TooLarge
Too large sequence or map.
UnknownByte(u8)
Invalid Byte at the beginning of a new value detected.
UnknownField(String)
Unknown field in struct.
MissingField(&'static str)
Struct is missing a field.
InvalidSyntax(String)
General error required by serde.
Trait Implementations
impl PartialEq for ErrorCode
[src]
fn eq(&self, __arg_0: &ErrorCode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ErrorCode) -> bool
This method tests for !=
.
impl Clone for ErrorCode
[src]
fn clone(&self) -> ErrorCode
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