pub enum Error {
UnsupportedCipher(Vec<u8>),
UnsupportedKdf(Vec<u8>),
UnsupportedStreamCipher(Vec<u8>),
Decryption,
XmlParse,
BadFormat,
CorruptedFile,
Io(Error),
Other(String),
}
Unknown database cipher UUID.
Only ChaCha20
and AES256
are supported.
Unknown key derivation function UUID.
Only Argon2
and AES
are supported.
Unknown cipher for the inner stream (i.e. data encrypted within XML).
Only ChaCha20
and Salsa20
are supported.
Error during file decryption (see log output for more info).
Error during parsing XML.
Malformed KDBX4 file or unsupported features (see log output for more info).
Wrong password, key file or corrupted file.
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Deprecated since 1.33.0
: replaced by Error::source, which can support downcasting
The lower-level cause of this error, if any. Read more
The lower-level source of this error, if any. Read more
Converts the given value to a String
. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static