pub enum Error {
Open(OpenError),
Unlock(UnlockError),
Write(WriteError),
XmlRead(XmlReadError),
XmlWrite(XmlWriteError),
KeyGeneration(KeyGenerationError),
}Expand description
Wrapper error type for this library
Variants§
Open(OpenError)
Failed to open a KDBX file
Unlock(UnlockError)
Failed unlocking a KDBX file
Write(WriteError)
Failed to write a KDBX file
XmlRead(XmlReadError)
Failed parsing database XML
XmlWrite(XmlWriteError)
Failed writing database XML
KeyGeneration(KeyGenerationError)
Failed generating crypto keys
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<Error> for Error
impl From<Error> for Error
Source§fn from(source: XmlReadError) -> Self
fn from(source: XmlReadError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for Error
impl From<Error> for Error
Source§fn from(source: XmlWriteError) -> Self
fn from(source: XmlWriteError) -> Self
Converts to this type from the input type.
Source§impl From<FailedUnlock> for Error
impl From<FailedUnlock> for Error
Source§fn from(funlock: FailedUnlock) -> Error
fn from(funlock: FailedUnlock) -> Error
Converts to this type from the input type.
Source§impl From<KeyGenerationError> for Error
impl From<KeyGenerationError> for Error
Source§fn from(source: KeyGenerationError) -> Self
fn from(source: KeyGenerationError) -> Self
Converts to this type from the input type.
Source§impl From<UnlockError> for Error
impl From<UnlockError> for Error
Source§fn from(source: UnlockError) -> Self
fn from(source: UnlockError) -> Self
Converts to this type from the input type.
Source§impl From<WriteError> for Error
impl From<WriteError> for Error
Source§fn from(source: WriteError) -> Self
fn from(source: WriteError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe 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