Enum kdbx4::Error[][src]

pub enum Error {
    UnsupportedCipher(Vec<u8>),
    UnsupportedKdf(Vec<u8>),
    UnsupportedStreamCipher(Vec<u8>),
    Decryption,
    XmlParse,
    BadFormat,
    CorruptedFile,
    Io(Error),
    Other(String),
}

Variants

UnsupportedCipher(Vec<u8>)

Unknown database cipher UUID. Only ChaCha20 and AES256 are supported.

Tuple Fields of UnsupportedCipher

0: Vec<u8>
UnsupportedKdf(Vec<u8>)

Unknown key derivation function UUID. Only Argon2 and AES are supported.

Tuple Fields of UnsupportedKdf

0: Vec<u8>
UnsupportedStreamCipher(Vec<u8>)

Unknown cipher for the inner stream (i.e. data encrypted within XML). Only ChaCha20 and Salsa20 are supported.

Tuple Fields of UnsupportedStreamCipher

0: Vec<u8>
Decryption

Error during file decryption (see log output for more info).

XmlParse

Error during parsing XML.

BadFormat

Malformed KDBX4 file or unsupported features (see log output for more info).

CorruptedFile

Wrong password, key file or corrupted file.

Io(Error)

Tuple Fields of Io

0: Error
Other(String)

Tuple Fields of Other

0: String

Trait Implementations

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 source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.