pub enum DatabaseIntegrityError {
Show 32 variants
Kdb(KdbOpenError),
Kdbx3(Kdbx3OpenError),
Kdbx4(Kdbx4OpenError),
Version(DatabaseVersionParseError),
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§
Kdb(KdbOpenError)
Kdbx3(Kdbx3OpenError)
Kdbx4(Kdbx4OpenError)
Version(DatabaseVersionParseError)
InvalidKDBXIdentifier
InvalidKDBXVersion
InvalidFixedHeader
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.
Source§impl From<DatabaseVersionParseError> for DatabaseIntegrityError
impl From<DatabaseVersionParseError> for DatabaseIntegrityError
Source§fn from(source: DatabaseVersionParseError) -> Self
fn from(source: DatabaseVersionParseError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for DatabaseIntegrityError
impl From<Error> for DatabaseIntegrityError
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.
Source§impl From<Kdbx3OpenError> for DatabaseIntegrityError
impl From<Kdbx3OpenError> for DatabaseIntegrityError
Source§fn from(source: Kdbx3OpenError) -> Self
fn from(source: Kdbx3OpenError) -> Self
Converts to this type from the input type.
Source§impl From<Kdbx4OpenError> for DatabaseIntegrityError
impl From<Kdbx4OpenError> for DatabaseIntegrityError
Source§fn from(source: Kdbx4OpenError) -> Self
fn from(source: Kdbx4OpenError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DatabaseIntegrityError
impl !UnwindSafe for DatabaseIntegrityError
impl Freeze for DatabaseIntegrityError
impl Send for DatabaseIntegrityError
impl Sync for DatabaseIntegrityError
impl Unpin for DatabaseIntegrityError
impl UnsafeUnpin 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