pub enum DeserializationError<T: Debug + Into<Box<dyn Error + Sync + Send + 'static>>> {
InvalidPayload(T),
UnsupportedContentType(String),
}
Expand description
Enum to describe the type of error that occurred during payload deserialization.
Variants§
InvalidPayload(T)
An error occurred while deserializing.
UnsupportedContentType(String)
The content type received is not supported by the deserialization implementation.
Trait Implementations§
Source§impl<T: Debug + Debug + Into<Box<dyn Error + Sync + Send + 'static>>> Debug for DeserializationError<T>
impl<T: Debug + Debug + Into<Box<dyn Error + Sync + Send + 'static>>> Debug for DeserializationError<T>
Source§impl<T> Display for DeserializationError<T>
impl<T> Display for DeserializationError<T>
Source§impl<T> Error for DeserializationError<T>
impl<T> Error for DeserializationError<T>
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 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<T> Freeze for DeserializationError<T>where
T: Freeze,
impl<T> RefUnwindSafe for DeserializationError<T>where
T: RefUnwindSafe,
impl<T> Send for DeserializationError<T>where
T: Send,
impl<T> Sync for DeserializationError<T>where
T: Sync,
impl<T> Unpin for DeserializationError<T>where
T: Unpin,
impl<T> UnwindSafe for DeserializationError<T>where
T: UnwindSafe,
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