#[non_exhaustive]pub enum Kdbx3OuterHeaderError {
InnerCipher(InnerCipherConfigError),
OuterCipher(OuterCipherConfigError),
Compression(CompressionConfigError),
InvalidOuterHeaderEntry(u8),
IncompleteOuterHeader(&'static str),
UnexpectedEof,
}Expand description
Errors related to parsing the outer header of 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.
InnerCipher(InnerCipherConfigError)
Errors related to parsing the inner cipher configuration
OuterCipher(OuterCipherConfigError)
Errors related to parsing the outer cipher configuration
Compression(CompressionConfigError)
Errors related to parsing the compression configuration
InvalidOuterHeaderEntry(u8)
An outer header entry has an invalid type identifier
IncompleteOuterHeader(&'static str)
The outer header is missing a required entry
UnexpectedEof
Encountered an unexpected end of file while reading the outer header
Trait Implementations§
Source§impl Debug for Kdbx3OuterHeaderError
impl Debug for Kdbx3OuterHeaderError
Source§impl Display for Kdbx3OuterHeaderError
impl Display for Kdbx3OuterHeaderError
Source§impl Error for Kdbx3OuterHeaderError
impl Error for Kdbx3OuterHeaderError
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 Kdbx3OuterHeaderError
impl From<CompressionConfigError> for Kdbx3OuterHeaderError
Source§fn from(source: CompressionConfigError) -> Self
fn from(source: CompressionConfigError) -> Self
Converts to this type from the input type.
Source§impl From<InnerCipherConfigError> for Kdbx3OuterHeaderError
impl From<InnerCipherConfigError> for Kdbx3OuterHeaderError
Source§fn from(source: InnerCipherConfigError) -> Self
fn from(source: InnerCipherConfigError) -> 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<OuterCipherConfigError> for Kdbx3OuterHeaderError
impl From<OuterCipherConfigError> for Kdbx3OuterHeaderError
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 Kdbx3OuterHeaderError
impl RefUnwindSafe for Kdbx3OuterHeaderError
impl Send for Kdbx3OuterHeaderError
impl Sync for Kdbx3OuterHeaderError
impl Unpin for Kdbx3OuterHeaderError
impl UnsafeUnpin for Kdbx3OuterHeaderError
impl UnwindSafe for Kdbx3OuterHeaderError
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