Enum daybreak::error::DeSerError
source · #[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
sourceimpl Debug for DeSerError
impl Debug for DeSerError
sourceimpl Display for DeSerError
impl Display for DeSerError
sourceimpl Error for DeSerError
impl Error for DeSerError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<DeSerError> for Error
impl From<DeSerError> for Error
sourcefn from(source: DeSerError) -> Self
fn from(source: DeSerError) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for DeSerError
impl From<Error> for DeSerError
sourceimpl From<Error> for DeSerError
impl From<Error> for DeSerError
Auto Trait Implementations
impl !RefUnwindSafe for DeSerError
impl Send for DeSerError
impl Sync for DeSerError
impl Unpin for DeSerError
impl !UnwindSafe for DeSerError
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