#[non_exhaustive]pub enum DatabaseKeyError {
EmptyKey,
IncorrectKey,
Io(Error),
Xml(Error),
InvalidKeyFile,
}Expand description
Errors that can occur when working with database keys
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.
EmptyKey
The database key contains no components, i.e. no password, keyfile or challenge-response key
IncorrectKey
The database key is incorrect
Io(Error)
An I/O error occurred while reading the keyfile
Xml(Error)
An error occurred while parsing the XML keyfile
InvalidKeyFile
An error occurred while parsing the non-XML keyfile
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 !RefUnwindSafe for DatabaseKeyError
impl !UnwindSafe for DatabaseKeyError
impl Freeze for DatabaseKeyError
impl Send for DatabaseKeyError
impl Sync for DatabaseKeyError
impl Unpin for DatabaseKeyError
impl UnsafeUnpin 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