#[non_exhaustive]pub enum Error<E> {
Traversal(Traversal),
Inner(usize, E),
Finalization(E),
}
Expand description
Compound errors
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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: PartialEq> PartialEq for Error<E>
impl<E: PartialEq> PartialEq for Error<E>
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