[−][src]Enum serde_version::Error
Error wrapper to add the version number related errors
Variants
DeserializeError(E)
InvalidVersionError(InvalidVersionError)
Message(String)
Methods
impl<E> Error<E> where
E: Error,
[src]
E: Error,
pub fn into_error(self) -> E
[src]
impl<E> Error<Error<E>> where
E: Error,
[src]
E: Error,
Trait Implementations
impl<E: Eq> Eq for Error<E>
[src]
impl<E: PartialEq> PartialEq<Error<E>> for Error<E>
[src]
impl<E: Hash> Hash for Error<E>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<E> Display for Error<E> where
E: Display,
[src]
E: Display,
impl<E: Debug> Debug for Error<E>
[src]
impl<E> Error for Error<E> where
E: Error,
[src]
E: Error,
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
impl<E> Error for Error<E> where
E: Error,
[src]
E: Error,
fn custom<T>(msg: T) -> Self where
T: Display,
[src]
T: Display,
fn invalid_type(unexp: Unexpected, exp: &dyn Expected) -> Self
[src]
fn invalid_value(unexp: Unexpected, exp: &dyn Expected) -> Self
[src]
fn invalid_length(len: usize, exp: &dyn Expected) -> Self
[src]
fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self
[src]
fn unknown_field(field: &str, expected: &'static [&'static str]) -> Self
[src]
fn missing_field(field: &'static str) -> Self
[src]
fn duplicate_field(field: &'static str) -> Self
[src]
Auto Trait Implementations
impl<E> Unpin for Error<E> where
E: Unpin,
E: Unpin,
impl<E> Sync for Error<E> where
E: Sync,
E: Sync,
impl<E> Send for Error<E> where
E: Send,
E: Send,
impl<E> UnwindSafe for Error<E> where
E: UnwindSafe,
E: UnwindSafe,
impl<E> RefUnwindSafe for Error<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsFail for T where
T: Fail,
[src]
T: Fail,
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
[src]
E: 'static + Error + Send + Sync,