Enum fog_db_traits::DbError
source · #[non_exhaustive]pub enum DbError {
Internal(Box<dyn Error>),
FogDoc {
context: String,
doc: Hash,
err: Error,
},
FogEntry {
context: String,
entry: EntryRef,
err: Error,
},
FogOther {
context: String,
err: Error,
},
}
Expand description
A fundamental database error has occurred. Usually means the database must be closed and access halted.
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.
Internal(Box<dyn Error>)
Internal Database error
FogDoc
Error occurred while handling a fog-pack document
FogEntry
Error occurred while handling a fog-pack entry
FogOther
Some other fog-pack related error occurred
Auto Trait Implementations§
impl !RefUnwindSafe for DbError
impl !Send for DbError
impl !Sync for DbError
impl Unpin for DbError
impl !UnwindSafe for DbError
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