pub enum EncodeError {
    Int8(i8),
    Int16(i16),
    Int32(i32),
    Int64(i64),
    Int128(i128),
    Uint8(u8),
    Uint16(u16),
    Uint32(u32),
    Uint64(u64),
    Uint128(u128),
    Str(String),
    Bytes(Vec<u8>),
}
Expand description

EncodeError wraps the value that caused an error during encoding and returns it. Example Err(EncoderErr::Int16(2422)) is used to depict that value 2422 which was of type int16 caused an error during encoding.

Variants

Int8(i8)

Int16(i16)

Int32(i32)

Int64(i64)

Int128(i128)

Uint8(u8)

Uint16(u16)

Uint32(u32)

Uint64(u64)

Uint128(u128)

Str(String)

Bytes(Vec<u8>)

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.