#[non_exhaustive]pub enum DatabaseVersionParseError {
UnexpectedEof,
InvalidKDBXIdentifier,
InvalidKDBXVersion {
version: u32,
file_major_version: u32,
file_minor_version: u32,
},
}Expand description
Errors that can occur during parsing of the database version from a KDBX file
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
Encountered an unexpected end of file while reading the database version header, which should be at least 12 bytes long.
InvalidKDBXIdentifier
The first 4 bytes of a KDBX file did not match the expected KDBX identifier
InvalidKDBXVersion
The version information in the KDBX file did not match any supported database versions
Trait Implementations§
Source§impl Debug for DatabaseVersionParseError
impl Debug for DatabaseVersionParseError
Source§impl Display for DatabaseVersionParseError
impl Display for DatabaseVersionParseError
Source§impl Error for DatabaseVersionParseError
impl Error for DatabaseVersionParseError
1.30.0 · 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<DatabaseVersionParseError> for DatabaseOpenError
impl From<DatabaseVersionParseError> for DatabaseOpenError
Source§fn from(source: DatabaseVersionParseError) -> Self
fn from(source: DatabaseVersionParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DatabaseVersionParseError
impl RefUnwindSafe for DatabaseVersionParseError
impl Send for DatabaseVersionParseError
impl Sync for DatabaseVersionParseError
impl Unpin for DatabaseVersionParseError
impl UnsafeUnpin for DatabaseVersionParseError
impl UnwindSafe for DatabaseVersionParseError
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