#[non_exhaustive]pub enum BackendError {
TempFile(PersistError),
Io(Error),
Internal(String),
Other(Error),
}
Expand description
An error returned by a Backend 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.
TempFile(PersistError)
An error occured from the tempfile
Io(Error)
An I/O Error occured
Internal(String)
An internal error occured
Other(Error)
A dynamic error occured
Most likely the custom Backend
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 BackendError
impl Debug for BackendError
Source§impl Display for BackendError
impl Display for BackendError
Source§impl Error for BackendError
impl Error for BackendError
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<BackendError> for Error
impl From<BackendError> for Error
Source§fn from(source: BackendError) -> Self
fn from(source: BackendError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for BackendError
impl From<Error> for BackendError
Source§impl From<Error> for BackendError
impl From<Error> for BackendError
Source§impl From<PersistError> for BackendError
impl From<PersistError> for BackendError
Source§fn from(source: PersistError) -> Self
fn from(source: PersistError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BackendError
impl !RefUnwindSafe for BackendError
impl Send for BackendError
impl Sync for BackendError
impl Unpin for BackendError
impl !UnwindSafe for BackendError
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