pub enum DatabaseIntegrityError {
Show 28 variants
InvalidKDBXIdentifier,
InvalidKDBXVersion {
version: u32,
file_major_version: u32,
file_minor_version: u32,
},
InvalidFixedHeader {
size: usize,
},
InvalidKDBFieldLength {
field_type: u16,
field_size: u32,
expected_field_size: u32,
},
MissingKDBGroupLevel,
InvalidKDBXHeaderFieldID {
field_id: u8,
},
InvalidKDBGroupLevel {
group_level: u16,
current_level: u16,
},
MissingKDBGroupId,
InvalidKDBGroupId {
group_id: u32,
},
InvalidKDBGroupFieldType {
field_type: u16,
},
InvalidKDBEntryFieldType {
field_type: u16,
},
IncompleteKDBGroup,
IncompleteKDBEntry,
InvalidFixedCipherID {
cid: u32,
},
HeaderHashMismatch,
InvalidOuterHeaderEntry {
entry_type: u8,
},
IncompleteOuterHeader {
missing_field: String,
},
InvalidInnerHeaderEntry {
entry_type: u8,
},
IncompleteInnerHeader {
missing_field: String,
},
Cryptography(CryptographyError),
Xml(XmlParseError),
OuterCipher(OuterCipherConfigError),
InnerCipher(InnerCipherConfigError),
Compression(CompressionConfigError),
BlockStream(BlockStreamError),
VariantDictionary(VariantDictionaryError),
KdfSettings(KdfConfigError),
Io(Error),
}Expand description
Errors stemming from corrupted databases
Variants§
InvalidKDBXIdentifier
The database does not have a valid KDBX identifier
InvalidKDBXVersion
The version of the KDBX file is invalid
InvalidFixedHeader
The fixed header has an invalid size
InvalidKDBFieldLength
MissingKDBGroupLevel
InvalidKDBXHeaderFieldID
InvalidKDBGroupLevel
MissingKDBGroupId
InvalidKDBGroupId
InvalidKDBGroupFieldType
InvalidKDBEntryFieldType
IncompleteKDBGroup
IncompleteKDBEntry
InvalidFixedCipherID
HeaderHashMismatch
InvalidOuterHeaderEntry
IncompleteOuterHeader
InvalidInnerHeaderEntry
IncompleteInnerHeader
Cryptography(CryptographyError)
Xml(XmlParseError)
OuterCipher(OuterCipherConfigError)
InnerCipher(InnerCipherConfigError)
Compression(CompressionConfigError)
BlockStream(BlockStreamError)
VariantDictionary(VariantDictionaryError)
KdfSettings(KdfConfigError)
Io(Error)
Trait Implementations§
Source§impl Debug for DatabaseIntegrityError
impl Debug for DatabaseIntegrityError
Source§impl Display for DatabaseIntegrityError
impl Display for DatabaseIntegrityError
Source§impl Error for DatabaseIntegrityError
impl Error for DatabaseIntegrityError
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<DatabaseIntegrityError> for DatabaseOpenError
impl From<DatabaseIntegrityError> for DatabaseOpenError
Source§fn from(source: DatabaseIntegrityError) -> Self
fn from(source: DatabaseIntegrityError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DatabaseIntegrityError
impl !RefUnwindSafe for DatabaseIntegrityError
impl Send for DatabaseIntegrityError
impl Sync for DatabaseIntegrityError
impl Unpin for DatabaseIntegrityError
impl !UnwindSafe for DatabaseIntegrityError
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