#[non_exhaustive]pub enum Kdbx3OpenError {
OuterHeader(Kdbx3OuterHeaderError),
BlockHashMismatch(usize),
Xml(ParseXmlError),
}Expand description
Errors related to opening a KDBX3 database
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.
OuterHeader(Kdbx3OuterHeaderError)
Errors related to parsing the outer header of the KDBX3 database
BlockHashMismatch(usize)
A data block has a hash that does not match the expected hash, indicating possible corruption
Xml(ParseXmlError)
Errors related to parsing the inner XML database of the KDBX3 file
Trait Implementations§
Source§impl Debug for Kdbx3OpenError
impl Debug for Kdbx3OpenError
Source§impl Display for Kdbx3OpenError
impl Display for Kdbx3OpenError
Source§impl Error for Kdbx3OpenError
impl Error for Kdbx3OpenError
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<Kdbx3OpenError> for DatabaseFormatError
impl From<Kdbx3OpenError> for DatabaseFormatError
Source§fn from(source: Kdbx3OpenError) -> Self
fn from(source: Kdbx3OpenError) -> Self
Converts to this type from the input type.
Source§impl From<Kdbx3OuterHeaderError> for Kdbx3OpenError
impl From<Kdbx3OuterHeaderError> for Kdbx3OpenError
Source§fn from(source: Kdbx3OuterHeaderError) -> Self
fn from(source: Kdbx3OuterHeaderError) -> Self
Converts to this type from the input type.
Source§impl From<ParseXmlError> for Kdbx3OpenError
impl From<ParseXmlError> for Kdbx3OpenError
Source§fn from(source: ParseXmlError) -> Self
fn from(source: ParseXmlError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Kdbx3OpenError
impl !UnwindSafe for Kdbx3OpenError
impl Freeze for Kdbx3OpenError
impl Send for Kdbx3OpenError
impl Sync for Kdbx3OpenError
impl Unpin for Kdbx3OpenError
impl UnsafeUnpin for Kdbx3OpenError
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