pub enum ValueConversionError {
InvalidVersion,
Serialize(SerializeError),
Deserialize(DeserializeError),
}Expand description
Error when converting a value.
Variants§
InvalidVersion
The requested version is invalid.
Serialize(SerializeError)
A value failed to serialize.
Deserialize(DeserializeError)
A value failed to deserialize.
Trait Implementations§
Source§impl Clone for ValueConversionError
impl Clone for ValueConversionError
Source§fn clone(&self) -> ValueConversionError
fn clone(&self) -> ValueConversionError
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ValueConversionError
impl Debug for ValueConversionError
Source§impl Display for ValueConversionError
impl Display for ValueConversionError
Source§impl Error for ValueConversionError
impl Error for ValueConversionError
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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<DeserializeError> for ValueConversionError
impl From<DeserializeError> for ValueConversionError
Source§fn from(source: DeserializeError) -> Self
fn from(source: DeserializeError) -> Self
Converts to this type from the input type.
Source§impl From<SerializeError> for ValueConversionError
impl From<SerializeError> for ValueConversionError
Source§fn from(source: SerializeError) -> Self
fn from(source: SerializeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ValueConversionError
impl PartialEq for ValueConversionError
impl Copy for ValueConversionError
impl Eq for ValueConversionError
impl StructuralPartialEq for ValueConversionError
Auto Trait Implementations§
impl Freeze for ValueConversionError
impl RefUnwindSafe for ValueConversionError
impl Send for ValueConversionError
impl Sync for ValueConversionError
impl Unpin for ValueConversionError
impl UnwindSafe for ValueConversionError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)