pub enum Error<E> {
Traversal(Traversal),
Inner(usize, E),
Finalization(E),
}
Expand description
Compound errors
Variants§
Traversal(Traversal)
Tree traversal error
Inner(usize, E)
The value provided could not be serialized or deserialized or the traversal callback returned an error.
Finalization(E)
There was an error during finalization.
The Deserializer
has encountered an error only after successfully
deserializing a value. This is the case if there is additional unexpected data.
The deserialize_by_key()
update takes place but this
error will be returned.
A Serializer
may write checksums or additional framing data and fail with
this error during finalization after the value has been serialized.
Implementations§
Trait Implementations§
source§impl<E> Error for Error<E>
impl<E> Error for Error<E>
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()
impl<E: Copy> Copy for Error<E>
impl<E: Eq> Eq for Error<E>
impl<E> StructuralPartialEq for Error<E>
Auto Trait Implementations§
impl<E> Freeze for Error<E>where
E: Freeze,
impl<E> RefUnwindSafe for Error<E>where
E: RefUnwindSafe,
impl<E> Send for Error<E>where
E: Send,
impl<E> Sync for Error<E>where
E: Sync,
impl<E> Unpin for Error<E>where
E: Unpin,
impl<E> UnwindSafe for Error<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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)