[go: up one dir, main page]

Enum cbor::WriteError [] [src]

pub enum WriteError {
    InvalidMapKey {
        got: Option<Type>,
    },
}

An error produced by writing CBOR data.

Variants

InvalidMapKey

Occurs when writing a map key that isn't a Unicode string.

Fields

got: Option<Type>

The received type (if that information is available).

Trait Implementations

impl Debug for WriteError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for WriteError
[src]

fn clone(&self) -> WriteError

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Display for WriteError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.