pub struct DecodeError<E: DeErr + Send + Sync> { /* private fields */ }Expand description
Error type for deserialization failures.
This struct wraps format-agnostic decoding errors from various serialization
backends (JSON, msgpack, etc.). It uses thiserror to provide consistent
error formatting and conversion from format-specific error types.
The underlying error is boxed to allow different serialization formats to contribute their own error types without requiring a large enum variant.
Trait Implementations§
Source§impl<E> Display for DecodeError<E>
impl<E> Display for DecodeError<E>
Source§impl<E: DeErr + Send + Sync> Error for DecodeError<E>
impl<E: DeErr + Send + Sync> Error for DecodeError<E>
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()
Auto Trait Implementations§
impl<E> Freeze for DecodeError<E>where
E: Freeze,
impl<E> RefUnwindSafe for DecodeError<E>where
E: RefUnwindSafe,
impl<E> Send for DecodeError<E>
impl<E> Sync for DecodeError<E>
impl<E> Unpin for DecodeError<E>where
E: Unpin,
impl<E> UnsafeUnpin for DecodeError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for DecodeError<E>where
E: 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