[−][src]Enum cbor::decoder::DecodeError
Variants
DuplicateKey(Key)
An object contains the same key multiple times
IntOverflow(u64)
The signed integer is greater that its max value
InvalidKey(Value)
The decoded Value
can not serve as a Key
in an object
InvalidTag(Value)
The type of Value
is not what is expected for a Tag
InvalidUtf8(Utf8Error)
The string is not encoded in UTF-8
IoError(Error)
Some I/O error
The maximum configured length is exceeded
Value
s are nested deeper than the configured maximum
The end of file has been encountered unexpectedly
An unexpected type has been encountered
A break was encountered at some unexpected point while decoding an indefinite object.
Some other error.
Trait Implementations
impl Debug for DecodeError
[src]
impl Display for DecodeError
[src]
impl Error for DecodeError
[src]
pub fn description(&self) -> &str
[src]
pub fn cause(&self) -> Option<&dyn Error>
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
impl From<Error> for DecodeError
[src]
pub fn from(e: Error) -> DecodeError
[src]
impl From<FromUtf8Error> for DecodeError
[src]
pub fn from(e: FromUtf8Error) -> DecodeError
[src]
impl From<ReadSliceError> for DecodeError
[src]
pub fn from(e: ReadSliceError) -> DecodeError
[src]
impl From<Utf8Error> for DecodeError
[src]
pub fn from(e: Utf8Error) -> DecodeError
[src]
Auto Trait Implementations
impl !RefUnwindSafe for DecodeError
[src]
impl Send for DecodeError
[src]
impl Sync for DecodeError
[src]
impl Unpin for DecodeError
[src]
impl !UnwindSafe for DecodeError
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,