pub enum DatabaseOpenError {
Io(Error),
Key(DatabaseKeyError),
DatabaseIntegrity(DatabaseIntegrityError),
UnsupportedVersion,
}
Expand description
Errors upon reading a Database
Variants§
Io(Error)
An I/O error has occurred while reading the database
Key(DatabaseKeyError)
An error with the database’s key has occurred
DatabaseIntegrity(DatabaseIntegrityError)
The database is corrupted
UnsupportedVersion
The database version cannot be read by this library
Trait Implementations§
Source§impl Debug for DatabaseOpenError
impl Debug for DatabaseOpenError
Source§impl Display for DatabaseOpenError
impl Display for DatabaseOpenError
Source§impl Error for DatabaseOpenError
impl Error for DatabaseOpenError
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<DatabaseIntegrityError> for DatabaseOpenError
impl From<DatabaseIntegrityError> for DatabaseOpenError
Source§fn from(source: DatabaseIntegrityError) -> Self
fn from(source: DatabaseIntegrityError) -> Self
Converts to this type from the input type.
Source§impl From<DatabaseKeyError> for DatabaseOpenError
impl From<DatabaseKeyError> for DatabaseOpenError
Source§fn from(source: DatabaseKeyError) -> Self
fn from(source: DatabaseKeyError) -> Self
Converts to this type from the input type.
Source§impl From<DatabaseOpenError> for Error
impl From<DatabaseOpenError> for Error
Source§fn from(source: DatabaseOpenError) -> Self
fn from(source: DatabaseOpenError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DatabaseOpenError
impl !RefUnwindSafe for DatabaseOpenError
impl Send for DatabaseOpenError
impl Sync for DatabaseOpenError
impl Unpin for DatabaseOpenError
impl !UnwindSafe for DatabaseOpenError
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