#[non_exhaustive]pub enum Kdbx4InnerHeaderError {
InnerCipherConfig(InnerCipherConfigError),
InvalidEntry(u8),
Incomplete(&'static str),
UnexpectedEof,
}Expand description
Errors that can occur while parsing the KDBX4 inner header
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.
InnerCipherConfig(InnerCipherConfigError)
Errors related to the inner cipher configuration
InvalidEntry(u8)
Encountered an invalid header entry
Incomplete(&'static str)
The inner header is missing a required field
UnexpectedEof
The file ended unexpectedly while parsing the inner header
Trait Implementations§
Source§impl Debug for Kdbx4InnerHeaderError
impl Debug for Kdbx4InnerHeaderError
Source§impl Display for Kdbx4InnerHeaderError
impl Display for Kdbx4InnerHeaderError
Source§impl Error for Kdbx4InnerHeaderError
impl Error for Kdbx4InnerHeaderError
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<InnerCipherConfigError> for Kdbx4InnerHeaderError
impl From<InnerCipherConfigError> for Kdbx4InnerHeaderError
Source§fn from(source: InnerCipherConfigError) -> Self
fn from(source: InnerCipherConfigError) -> 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.
Auto Trait Implementations§
impl Freeze for Kdbx4InnerHeaderError
impl RefUnwindSafe for Kdbx4InnerHeaderError
impl Send for Kdbx4InnerHeaderError
impl Sync for Kdbx4InnerHeaderError
impl Unpin for Kdbx4InnerHeaderError
impl UnsafeUnpin for Kdbx4InnerHeaderError
impl UnwindSafe for Kdbx4InnerHeaderError
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