#[non_exhaustive]pub enum Kdbx4OuterHeaderError {
UnexpectedEof,
OuterCipherConfig(OuterCipherConfigError),
CompressionConfig(CompressionConfigError),
ParseKdfConfig(VariantDictionaryError),
ParseCustomData(VariantDictionaryError),
KdfConfig(KdfConfigError),
InvalidEntry(u8),
Incomplete(&'static str),
}Expand description
Errors that can occur while parsing the KDBX4 outer 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.
UnexpectedEof
The file ended unexpectedly while parsing the outer header
OuterCipherConfig(OuterCipherConfigError)
Errors related to the outer cipher configuration
CompressionConfig(CompressionConfigError)
Errors related to the compression configuration
ParseKdfConfig(VariantDictionaryError)
Errors related to parsing the key derivation function configuration
ParseCustomData(VariantDictionaryError)
Errors related to parsing the public custom data
KdfConfig(KdfConfigError)
Errors related to the key derivation function configuration
InvalidEntry(u8)
The outer header contains an entry with an unrecognized or invalid entry type identifier
Incomplete(&'static str)
The outer header is missing a required field
Trait Implementations§
Source§impl Debug for Kdbx4OuterHeaderError
impl Debug for Kdbx4OuterHeaderError
Source§impl Display for Kdbx4OuterHeaderError
impl Display for Kdbx4OuterHeaderError
Source§impl Error for Kdbx4OuterHeaderError
impl Error for Kdbx4OuterHeaderError
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<CompressionConfigError> for Kdbx4OuterHeaderError
impl From<CompressionConfigError> for Kdbx4OuterHeaderError
Source§fn from(source: CompressionConfigError) -> Self
fn from(source: CompressionConfigError) -> 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<KdfConfigError> for Kdbx4OuterHeaderError
impl From<KdfConfigError> for Kdbx4OuterHeaderError
Source§fn from(source: KdfConfigError) -> Self
fn from(source: KdfConfigError) -> Self
Converts to this type from the input type.
Source§impl From<OuterCipherConfigError> for Kdbx4OuterHeaderError
impl From<OuterCipherConfigError> for Kdbx4OuterHeaderError
Source§fn from(source: OuterCipherConfigError) -> Self
fn from(source: OuterCipherConfigError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Kdbx4OuterHeaderError
impl RefUnwindSafe for Kdbx4OuterHeaderError
impl Send for Kdbx4OuterHeaderError
impl Sync for Kdbx4OuterHeaderError
impl Unpin for Kdbx4OuterHeaderError
impl UnsafeUnpin for Kdbx4OuterHeaderError
impl UnwindSafe for Kdbx4OuterHeaderError
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