Enum redb::DatabaseError
source · #[non_exhaustive]pub enum DatabaseError {
DatabaseAlreadyOpen,
RepairAborted,
UpgradeRequired(u8),
Storage(StorageError),
}
Expand description
Errors related to opening a database
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.
DatabaseAlreadyOpen
The Database is already open. Cannot acquire lock.
RepairAborted
crate::RepairSession::abort was called.
UpgradeRequired(u8)
The database file is in an old file format and must be manually upgraded
Storage(StorageError)
Error from underlying storage
Trait Implementations§
source§impl Debug for DatabaseError
impl Debug for DatabaseError
source§impl Display for DatabaseError
impl Display for DatabaseError
source§impl Error for DatabaseError
impl Error for DatabaseError
1.30.0 · source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<DatabaseError> for Error
impl From<DatabaseError> for Error
source§fn from(err: DatabaseError) -> Error
fn from(err: DatabaseError) -> Error
Converts to this type from the input type.
source§impl From<Error> for DatabaseError
impl From<Error> for DatabaseError
source§fn from(err: Error) -> DatabaseError
fn from(err: Error) -> DatabaseError
Converts to this type from the input type.
source§impl From<StorageError> for DatabaseError
impl From<StorageError> for DatabaseError
source§fn from(err: StorageError) -> DatabaseError
fn from(err: StorageError) -> DatabaseError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DatabaseError
impl !RefUnwindSafe for DatabaseError
impl Send for DatabaseError
impl Sync for DatabaseError
impl Unpin for DatabaseError
impl !UnwindSafe for DatabaseError
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