pub enum CheckDeserializeError<C, D> {
CheckBytesError(C),
DeserializeError(D),
}
Expand description
Errors that can occur while deserializing from bytes.
Variants
CheckBytesError(C)
A validation error occurred.
DeserializeError(D)
A deserialization error occurred.
Trait Implementations
sourceimpl<C: Debug, D: Debug> Debug for CheckDeserializeError<C, D>
impl<C: Debug, D: Debug> Debug for CheckDeserializeError<C, D>
sourceimpl<C: Display, D: Display> Display for CheckDeserializeError<C, D>
impl<C: Display, D: Display> Display for CheckDeserializeError<C, D>
sourceimpl<C: Error + 'static, D: Error + 'static> Error for CheckDeserializeError<C, D>
impl<C: Error + 'static, D: Error + 'static> Error for CheckDeserializeError<C, D>
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl<C, D> RefUnwindSafe for CheckDeserializeError<C, D> where
C: RefUnwindSafe,
D: RefUnwindSafe,
impl<C, D> Send for CheckDeserializeError<C, D> where
C: Send,
D: Send,
impl<C, D> Sync for CheckDeserializeError<C, D> where
C: Sync,
D: Sync,
impl<C, D> Unpin for CheckDeserializeError<C, D> where
C: Unpin,
D: Unpin,
impl<C, D> UnwindSafe for CheckDeserializeError<C, D> where
C: UnwindSafe,
D: UnwindSafe,
Blanket Implementations
sourceimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
sourcefn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more