#[non_exhaustive]pub enum DatabaseSaveError {
Io(Error),
Serialization(SeError),
Key(DatabaseKeyError),
Cryptography(CryptographyError),
Random(Error),
UnsupportedVersion,
}Expand description
Errors that can occur during saving of the database to a KDBX file
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.
Io(Error)
I/O errors that can occur while writing the database to the destination, such as file system errors
Serialization(SeError)
Errors related to XML serialization of the database
Key(DatabaseKeyError)
Errors related to database key operations
Cryptography(CryptographyError)
Errors related to encryption operations
Random(Error)
Errors related to random number generation
UnsupportedVersion
Attempted to save a database with an unsupported version (e.g., KDB, KDBX2, or KDBX3)
Trait Implementations§
Source§impl Debug for DatabaseSaveError
impl Debug for DatabaseSaveError
Source§impl Display for DatabaseSaveError
impl Display for DatabaseSaveError
Source§impl Error for DatabaseSaveError
impl Error for DatabaseSaveError
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 DatabaseSaveError
impl From<DatabaseKeyError> for DatabaseSaveError
Source§fn from(source: DatabaseKeyError) -> Self
fn from(source: DatabaseKeyError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for DatabaseSaveError
impl From<Error> for DatabaseSaveError
Source§impl From<Error> for DatabaseSaveError
impl From<Error> for DatabaseSaveError
Auto Trait Implementations§
impl !RefUnwindSafe for DatabaseSaveError
impl !UnwindSafe for DatabaseSaveError
impl Freeze for DatabaseSaveError
impl Send for DatabaseSaveError
impl Sync for DatabaseSaveError
impl Unpin for DatabaseSaveError
impl UnsafeUnpin for DatabaseSaveError
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