Enum cbor_data::Error [−][src]
pub enum Error<'a> {
UnexpectedEof(&'static str),
AtSlice(&'a [u8], ErrorKind),
AtOffset(usize, ErrorKind),
}Expand description
Error container for parsing problems
Variants
UnexpectedEof(&'static str)
Tuple Fields
0: &'static strThe provided bytes are incomplete
The contained string describes what was currently being parsed when bytes ran out.
AtSlice(&'a [u8], ErrorKind)
Internal — you’ll never see this
AtOffset(usize, ErrorKind)
The given error was found at the given offset in the input.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Error<'a>
impl<'a> UnwindSafe for Error<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more