pub enum DeserializationError {
InvalidValue(String),
UnexpectedEOF,
UnconsumedBytes,
UnknownError(String),
}
Expand description
Defines errors which can occur during deserialization.
Variants§
InvalidValue(String)
Bytes in the input do not represent a valid value.
UnexpectedEOF
An end of input was reached before a valid value could be deserialized.
UnconsumedBytes
Deserialization has finished but not all bytes have been consumed.
UnknownError(String)
An unknown error has occurred.
Trait Implementations§
source§impl Clone for DeserializationError
impl Clone for DeserializationError
source§fn clone(&self) -> DeserializationError
fn clone(&self) -> DeserializationError
Returns a copy 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 Debug for DeserializationError
impl Debug for DeserializationError
source§impl Display for DeserializationError
impl Display for DeserializationError
source§impl PartialEq for DeserializationError
impl PartialEq for DeserializationError
impl Eq for DeserializationError
impl StructuralPartialEq for DeserializationError
Auto Trait Implementations§
impl Freeze for DeserializationError
impl RefUnwindSafe for DeserializationError
impl Send for DeserializationError
impl Sync for DeserializationError
impl Unpin for DeserializationError
impl UnwindSafe for DeserializationError
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
)