[][src]Enum cbor_enhanced::CborError

pub enum CborError {
    Unknown(&'static str),
    ExpectBool(Special),
    ExpectNull(Special),
    ExpectUndefined(Special),
    ExpectUnassigned(Special),
    ExpectFloat(Special),
    ExpectBreak(Special),
    NomParseError(Vec<u8>, ErrorKind),
    Incomplete(Needed),
    InvalidUtf8(Utf8Error),
    InvalidIntegerByteSize(u8),
    UnhandledSpecialType(u8),
    ExpectText(Type),
    ExpectBytes(Type),
    ExpectUnsigned(Type),
    ExpectNegative(Type),
    ExpectSpecial(Type),
    ExpectReducedSpecial(Special),
    ExpectArray(Type),
    ExpectMap(Type),
    InvalidTags(IanaTag&'static [IanaTag]),
    InvalidTag(IanaTagIanaTag),
    WrongEndianness {
        expected: IanaTag,
        got: IanaTag,
    },
    InvalidArrayMultiple {
        needed_multiple_of: usize,
        got: usize,
    },
    InvalidArrayLength {
        expected: &'static [usize],
        got: usize,
    },
    TransmutionFailed(String),
    DateTimeParsingFailed(String),
    InvalidTimeType(Type),
    ExpectNonInfinite,
    InvalidUuid(Vec<u8>),
    InvalidRegex(StringString),
    InvalidMimeString(StringString),
    InvalidNumberConversion(String),
    ExpectNumber(String),
    InfiniteNotSupported,
    NoValueFound(&'static str),
}

Variants

Unknown(&'static str)
ExpectBool(Special)
ExpectNull(Special)
ExpectUndefined(Special)
ExpectUnassigned(Special)
ExpectFloat(Special)
ExpectBreak(Special)
NomParseError(Vec<u8>, ErrorKind)
Incomplete(Needed)
InvalidUtf8(Utf8Error)
InvalidIntegerByteSize(u8)
UnhandledSpecialType(u8)
ExpectText(Type)
ExpectBytes(Type)
ExpectUnsigned(Type)
ExpectNegative(Type)
ExpectSpecial(Type)
ExpectReducedSpecial(Special)
ExpectArray(Type)
ExpectMap(Type)
InvalidTag(IanaTagIanaTag)
WrongEndianness

Fields of WrongEndianness

expected: IanaTaggot: IanaTag
InvalidArrayMultiple

Fields of InvalidArrayMultiple

needed_multiple_of: usizegot: usize
InvalidArrayLength

Fields of InvalidArrayLength

expected: &'static [usize]got: usize
TransmutionFailed(String)
DateTimeParsingFailed(String)
InvalidTimeType(Type)
ExpectNonInfinite
InvalidUuid(Vec<u8>)
InvalidRegex(StringString)
InvalidMimeString(StringString)
InvalidNumberConversion(String)
ExpectNumber(String)
InfiniteNotSupported
NoValueFound(&'static str)

Trait Implementations

impl Clone for CborError[src]

impl Debug for CborError[src]

impl Display for CborError[src]

impl Fail for CborError[src]

impl From<Err<CborError>> for CborError[src]

impl From<Utf8Error> for CborError[src]

impl<'_> ParseError<&'_ [u8]> for CborError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsFail for T where
    T: Fail
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.