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.
UnsupportedKdf(Vec<u8>)
Unknown key derivation function UUID.
Only Argon2 and AES are supported.
UnsupportedStreamCipher(Vec<u8>)
Unknown cipher for the inner stream (i.e. data encrypted within XML).
Only ChaCha20 and Salsa20 are supported.
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)
Other(String)
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
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<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
Source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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