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§
Source§impl Clone for EncodeError
impl Clone for EncodeError
Source§fn clone(&self) -> EncodeError
fn clone(&self) -> EncodeError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for EncodeError
impl RefUnwindSafe for EncodeError
impl Send for EncodeError
impl Sync for EncodeError
impl Unpin for EncodeError
impl UnwindSafe for EncodeError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more