Enum cbor_smol::error::Error [−][src]
This is the error type used by cbor-smol
Variants
This is a feature that cbor-smol will never implement
This is a feature that cbor-smol intends to support, but does not yet
The serialize buffer is full
Hit the end of buffer, expected more data
Found a bool that wasn’t 0xf4 or 0xf5
Tried to parse invalid utf-8
Could not parse an enum
Expected a different major type
Expected a i8, was too large
Expected a i16, was too large
Expected a i32, was too large
Expected a u8
Expected a u16
Expected a u32
Expected a NULL marker
Inexistent slice-to-array cast error. Used here to avoid calling unwrap.
Value may be valid, but not encoded in minimal way
Serde Serialization Error
Serde Deserialization Error
Serde Missing required value
Trait Implementations
impl Clone for Error
[src]
fn clone(&self) -> Error
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn custom<T>(msg: T) -> Self where
T: Display,
[src]
T: Display,
fn missing_field(field: &'static str) -> Self
[src]
pub fn invalid_type(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
[src]
pub fn invalid_value(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
[src]
pub fn invalid_length(len: usize, exp: &dyn Expected) -> Self
[src]
pub fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self
[src]
pub fn unknown_field(field: &str, expected: &'static [&'static str]) -> Self
[src]
pub fn duplicate_field(field: &'static str) -> Self
[src]
impl PartialEq<Error> for Error
[src]
impl StructuralEq for Error
[src]
impl StructuralPartialEq for Error
[src]
Auto Trait Implementations
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> Same<T> for T
type Output = T
Should always be Self
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>,