#[non_exhaustive]pub enum Kdbx4OpenError {
Xml(ParseXmlError),
OuterHeader(Kdbx4OuterHeaderError),
InnerHeader(Kdbx4InnerHeaderError),
HeaderHashMismatch,
BlockStream(BlockStreamError),
}Expand description
Errors that can occur while parsing a KDBX4 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.
Xml(ParseXmlError)
Errors related to XML parsing of the inner database
OuterHeader(Kdbx4OuterHeaderError)
Errors related to parsing the outer header of the KDBX4 file
InnerHeader(Kdbx4InnerHeaderError)
Errors related to parsing the inner header of the KDBX4 file
HeaderHashMismatch
The SHA256 hash of the outer header did not match the expected value, indicating that the header may be corrupted or tampered with.
BlockStream(BlockStreamError)
Errors related to the HMAC-verified block stream of the KDBX4 file
Trait Implementations§
Source§impl Debug for Kdbx4OpenError
impl Debug for Kdbx4OpenError
Source§impl Display for Kdbx4OpenError
impl Display for Kdbx4OpenError
Source§impl Error for Kdbx4OpenError
impl Error for Kdbx4OpenError
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<BlockStreamError> for Kdbx4OpenError
impl From<BlockStreamError> for Kdbx4OpenError
Source§fn from(source: BlockStreamError) -> Self
fn from(source: BlockStreamError) -> Self
Converts to this type from the input type.
Source§impl From<Kdbx4InnerHeaderError> for Kdbx4OpenError
impl From<Kdbx4InnerHeaderError> for Kdbx4OpenError
Source§fn from(source: Kdbx4InnerHeaderError) -> Self
fn from(source: Kdbx4InnerHeaderError) -> Self
Converts to this type from the input type.
Source§impl From<Kdbx4OpenError> for DatabaseFormatError
impl From<Kdbx4OpenError> for DatabaseFormatError
Source§fn from(source: Kdbx4OpenError) -> Self
fn from(source: Kdbx4OpenError) -> Self
Converts to this type from the input type.
Source§impl From<Kdbx4OuterHeaderError> for Kdbx4OpenError
impl From<Kdbx4OuterHeaderError> for Kdbx4OpenError
Source§fn from(source: Kdbx4OuterHeaderError) -> Self
fn from(source: Kdbx4OuterHeaderError) -> Self
Converts to this type from the input type.
Source§impl From<ParseXmlError> for Kdbx4OpenError
impl From<ParseXmlError> for Kdbx4OpenError
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 Kdbx4OpenError
impl !UnwindSafe for Kdbx4OpenError
impl Freeze for Kdbx4OpenError
impl Send for Kdbx4OpenError
impl Sync for Kdbx4OpenError
impl Unpin for Kdbx4OpenError
impl UnsafeUnpin for Kdbx4OpenError
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