pub enum PersistentError {
Sqlite(Error),
Io(Error),
Serde(Error),
}
Expand description
Errors that can occur when using PersistentMap
.
This enum represents all the possible errors that can occur when using the various storage backends.
Variants§
Sqlite(Error)
An error occurred in the SQLite
backend.
Io(Error)
An I/O error occurred.
Serde(Error)
A serialization or deserialization error occurred.
Trait Implementations§
Source§impl Debug for PersistentError
impl Debug for PersistentError
Source§impl Display for PersistentError
impl Display for PersistentError
Source§impl Error for PersistentError
impl Error for PersistentError
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<Error> for PersistentError
impl From<Error> for PersistentError
Source§impl From<Error> for PersistentError
impl From<Error> for PersistentError
Auto Trait Implementations§
impl Freeze for PersistentError
impl !RefUnwindSafe for PersistentError
impl Send for PersistentError
impl Sync for PersistentError
impl Unpin for PersistentError
impl !UnwindSafe for PersistentError
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