pub enum DatabaseOpenError {
Io(Error),
Key(DatabaseKeyError),
DatabaseIntegrity(DatabaseIntegrityError),
Version(DatabaseVersionParseError),
UnsupportedVersion,
}Expand description
Errors upon reading a database.
Variants§
Io(Error)
Key(DatabaseKeyError)
DatabaseIntegrity(DatabaseIntegrityError)
Version(DatabaseVersionParseError)
UnsupportedVersion
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.
Source§impl From<DatabaseVersionParseError> for DatabaseOpenError
impl From<DatabaseVersionParseError> for DatabaseOpenError
Source§fn from(source: DatabaseVersionParseError) -> Self
fn from(source: DatabaseVersionParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DatabaseOpenError
impl !UnwindSafe for DatabaseOpenError
impl Freeze for DatabaseOpenError
impl Send for DatabaseOpenError
impl Sync for DatabaseOpenError
impl Unpin for DatabaseOpenError
impl UnsafeUnpin 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