pub enum Error<T> {
Encode(Error<T>),
SeqLenNone,
Message(String),
}Expand description
Error during serialization
Variants§
Encode(Error<T>)
Core error
SeqLenNone
Try serialize array or map but not passed length
Message(String)
Available on crate feature
std only.Parse error
Trait Implementations§
Source§impl<T> Error for Error<T>where
T: Error,
impl<T> Error for Error<T>where
T: Error,
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<T: Ord> Ord for Error<T>
impl<T: Ord> Ord for Error<T>
Source§impl<T: PartialOrd> PartialOrd for Error<T>
impl<T: PartialOrd> PartialOrd for Error<T>
impl<T: Eq> Eq for Error<T>
impl<T> StructuralPartialEq for Error<T>
Auto Trait Implementations§
impl<T> Freeze for Error<T>where
T: Freeze,
impl<T> RefUnwindSafe for Error<T>where
T: RefUnwindSafe,
impl<T> Send for Error<T>where
T: Send,
impl<T> Sync for Error<T>where
T: Sync,
impl<T> Unpin for Error<T>where
T: Unpin,
impl<T> UnsafeUnpin for Error<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Error<T>where
T: UnwindSafe,
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