Enum cbor_smol::error::Error[][src]

#[repr(u8)]pub enum Error {
    WontImplement,
    NotYetImplemented,
    SerializeBufferFull(usize),
    DeserializeUnexpectedEnd,
    DeserializeBadBool,
    DeserializeBadUtf8,
    DeserializeBadEnum,
    DeserializeBadMajor,
    DeserializeBadI8,
    DeserializeBadI16,
    DeserializeBadI32,
    DeserializeBadU8,
    DeserializeBadU16,
    DeserializeBadU32,
    DeserializeExpectedNull,
    InexistentSliceToArrayError,
    DeserializeNonMinimal,
    SerdeSerCustom,
    SerdeDeCustom,
    SerdeMissingField,
}

This is the error type used by cbor-smol

Variants

WontImplement

This is a feature that cbor-smol will never implement

NotYetImplemented

This is a feature that cbor-smol intends to support, but does not yet

SerializeBufferFull(usize)

The serialize buffer is full

DeserializeUnexpectedEnd

Hit the end of buffer, expected more data

DeserializeBadBool

Found a bool that wasn’t 0xf4 or 0xf5

DeserializeBadUtf8

Tried to parse invalid utf-8

DeserializeBadEnum

Could not parse an enum

DeserializeBadMajor

Expected a different major type

DeserializeBadI8

Expected a i8, was too large

DeserializeBadI16

Expected a i16, was too large

DeserializeBadI32

Expected a i32, was too large

DeserializeBadU8

Expected a u8

DeserializeBadU16

Expected a u16

DeserializeBadU32

Expected a u32

DeserializeExpectedNull

Expected a NULL marker

InexistentSliceToArrayError

Inexistent slice-to-array cast error. Used here to avoid calling unwrap.

DeserializeNonMinimal

Value may be valid, but not encoded in minimal way

SerdeSerCustom

Serde Serialization Error

SerdeDeCustom

Serde Deserialization Error

SerdeMissingField

Serde Missing required value

Trait Implementations

impl Clone for Error[src]

impl Copy for Error[src]

impl Debug for Error[src]

impl Display for Error[src]

impl Eq for Error[src]

impl Error for Error[src]

impl Error for Error[src]

impl Error for Error[src]

impl PartialEq<Error> for Error[src]

impl StructuralEq for Error[src]

impl StructuralPartialEq for Error[src]

Auto Trait Implementations

impl Send for Error

impl Sync for Error

impl Unpin for Error

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.