#[non_exhaustive]pub enum DeSerError {
Yaml(Error),
Ron(Error),
Bincode(Box<ErrorKind>),
Internal(String),
Other(Error),
}Expand description
An error returned by a DeSer implementor
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Yaml(Error)
An error occured with Yaml
Ron(Error)
An error occured with Ron
Bincode(Box<ErrorKind>)
An error occured with Bincode
Internal(String)
An internal error occured
Other(Error)
A dynamic error occured
Most likely the custom DeSer implementation has thrown an error, consult its documentation
for more information
Important: This can only be used if the other_errors feature is enabled
Trait Implementations§
Source§impl Debug for DeSerError
impl Debug for DeSerError
Source§impl Display for DeSerError
impl Display for DeSerError
Source§impl Error for DeSerError
impl Error for DeSerError
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()
Source§impl From<DeSerError> for Error
impl From<DeSerError> for Error
Source§fn from(source: DeSerError) -> Self
fn from(source: DeSerError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for DeSerError
impl From<Error> for DeSerError
Source§impl From<Error> for DeSerError
impl From<Error> for DeSerError
Auto Trait Implementations§
impl Freeze for DeSerError
impl !RefUnwindSafe for DeSerError
impl Send for DeSerError
impl Sync for DeSerError
impl Unpin for DeSerError
impl !UnwindSafe for DeSerError
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