pub enum KdbOpenError {
UnexpectedEof,
InvalidFieldLength {
field_type: u16,
field_size: u32,
expected_field_size: u32,
},
InvalidGroupLevel {
current: Option<u16>,
expected: u16,
},
InvalidGroupId(Option<u32>),
InvalidGroupFieldType(u16),
IncompleteGroup,
EntryMissingGroupId,
InvalidEntryFieldType(u16),
IncompleteEntry,
InvalidFixedCipherID(u32),
}Expand description
Errors that can occur when opening a KeePass 1 database
Variants§
UnexpectedEof
InvalidFieldLength
InvalidGroupLevel
InvalidGroupId(Option<u32>)
InvalidGroupFieldType(u16)
IncompleteGroup
EntryMissingGroupId
InvalidEntryFieldType(u16)
IncompleteEntry
InvalidFixedCipherID(u32)
Trait Implementations§
Source§impl Debug for KdbOpenError
impl Debug for KdbOpenError
Source§impl Display for KdbOpenError
impl Display for KdbOpenError
Source§impl Error for KdbOpenError
impl Error for KdbOpenError
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<KdbOpenError> for DatabaseIntegrityError
impl From<KdbOpenError> for DatabaseIntegrityError
Source§fn from(source: KdbOpenError) -> Self
fn from(source: KdbOpenError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KdbOpenError
impl RefUnwindSafe for KdbOpenError
impl Send for KdbOpenError
impl Sync for KdbOpenError
impl Unpin for KdbOpenError
impl UnsafeUnpin for KdbOpenError
impl UnwindSafe for KdbOpenError
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