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
sourceimpl Debug for DeserializationError
impl Debug for DeserializationError
sourceimpl Display for DeserializationError
impl Display for DeserializationError
sourceimpl PartialEq<DeserializationError> for DeserializationError
impl PartialEq<DeserializationError> for DeserializationError
sourcefn eq(&self, other: &DeserializationError) -> bool
fn eq(&self, other: &DeserializationError) -> bool
impl Eq for DeserializationError
impl StructuralEq for DeserializationError
impl StructuralPartialEq for DeserializationError
Auto Trait Implementations
impl RefUnwindSafe for DeserializationError
impl Send for DeserializationError
impl Sync for DeserializationError
impl Unpin for DeserializationError
impl UnwindSafe for DeserializationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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