pub enum DatabaseKeyError {
IncorrectKey,
Cryptography(CryptographyError),
Io(Error),
Xml(Error),
InvalidKeyFile,
ChallengeResponseKeyError(String),
}Expand description
Errors related to the database key
Variants§
IncorrectKey
The key specified was incorrect, e.g. because of a wrong password
Cryptography(CryptographyError)
An error occurred in an underlying cryptographic operation while computing the key
Io(Error)
An I/O error occurred while loading the keyfile
Xml(Error)
An XML error occurred while loading the keyfile
InvalidKeyFile
The keyfile is invalid and did not contain a key
ChallengeResponseKeyError(String)
Could not get challenge response key.
Trait Implementations§
Source§impl Debug for DatabaseKeyError
impl Debug for DatabaseKeyError
Source§impl Display for DatabaseKeyError
impl Display for DatabaseKeyError
Source§impl Error for DatabaseKeyError
impl Error for DatabaseKeyError
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<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<Error> for DatabaseKeyError
impl From<Error> for DatabaseKeyError
Auto Trait Implementations§
impl Freeze for DatabaseKeyError
impl !RefUnwindSafe for DatabaseKeyError
impl Send for DatabaseKeyError
impl Sync for DatabaseKeyError
impl Unpin for DatabaseKeyError
impl !UnwindSafe for DatabaseKeyError
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