pub enum DeserializeError<T> {
InvalidChecksum,
NoChecksum,
Next(T),
}Expand description
Possible errors that might occur during deserialization.
Variants§
InvalidChecksum
The data could not be verified because the checksum is not correct.
NoChecksum
No checksum exists in the data.
Next(T)
An error from the next deserializer in the chain.
Trait Implementations§
Source§impl<T> Clone for DeserializeError<T>where
T: Clone,
impl<T> Clone for DeserializeError<T>where
T: Clone,
Source§fn clone(&self) -> DeserializeError<T>
fn clone(&self) -> DeserializeError<T>
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 moreSource§impl<T> Debug for DeserializeError<T>where
T: Debug,
impl<T> Debug for DeserializeError<T>where
T: Debug,
Source§impl<T> Display for DeserializeError<T>where
T: Display,
impl<T> Display for DeserializeError<T>where
T: Display,
Source§impl<T> Error for DeserializeError<T>where
T: Error,
impl<T> Error for DeserializeError<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> PartialEq for DeserializeError<T>where
T: PartialEq,
impl<T> PartialEq for DeserializeError<T>where
T: PartialEq,
impl<T> Copy for DeserializeError<T>where
T: Copy,
impl<T> Eq for DeserializeError<T>where
T: Eq,
impl<T> StructuralPartialEq for DeserializeError<T>
Auto Trait Implementations§
impl<T> Freeze for DeserializeError<T>where
T: Freeze,
impl<T> RefUnwindSafe for DeserializeError<T>where
T: RefUnwindSafe,
impl<T> Send for DeserializeError<T>where
T: Send,
impl<T> Sync for DeserializeError<T>where
T: Sync,
impl<T> Unpin for DeserializeError<T>where
T: Unpin,
impl<T> UnwindSafe for DeserializeError<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