pub enum UnlockError {
HmacInvalid,
StartBytesInvalid,
KeyGen(KeyGenerationError),
Decrypt(Error),
InvalidInnerHeader(HeaderError),
InnerStream(InnerStreamError),
InvalidXml(XmlReadError),
}
Expand description
Errors encountered unlocking a encrypted database
Variants§
HmacInvalid
The HMAC signature check failed. This indicates an invalid password or corrupt DB
StartBytesInvalid
The start bytes check failed. This indicates an invalid password or corrupt DB
KeyGen(KeyGenerationError)
There was some error generating the keys, likely incorrect or unsupported KDF options
Decrypt(Error)
Error encountered decrypting the database content
InvalidInnerHeader(HeaderError)
The inner header is invalid
InnerStream(InnerStreamError)
The inner stream is invalid
InvalidXml(XmlReadError)
The inner header is invalid
Trait Implementations§
Source§impl Debug for UnlockError
impl Debug for UnlockError
Source§impl Display for UnlockError
impl Display for UnlockError
Source§impl Error for UnlockError
impl Error for UnlockError
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 UnlockError
impl From<Error> for UnlockError
Source§impl From<Error> for UnlockError
impl From<Error> for UnlockError
Source§fn from(source: XmlReadError) -> Self
fn from(source: XmlReadError) -> Self
Converts to this type from the input type.
Source§impl From<FailedUnlock> for UnlockError
impl From<FailedUnlock> for UnlockError
Source§fn from(funlock: FailedUnlock) -> UnlockError
fn from(funlock: FailedUnlock) -> UnlockError
Converts to this type from the input type.
Source§impl From<HeaderError> for UnlockError
impl From<HeaderError> for UnlockError
Source§fn from(source: HeaderError) -> Self
fn from(source: HeaderError) -> Self
Converts to this type from the input type.
Source§impl From<InnerStreamError> for UnlockError
impl From<InnerStreamError> for UnlockError
Source§fn from(source: InnerStreamError) -> Self
fn from(source: InnerStreamError) -> Self
Converts to this type from the input type.
Source§impl From<KeyGenerationError> for UnlockError
impl From<KeyGenerationError> for UnlockError
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.
Auto Trait Implementations§
impl Freeze for UnlockError
impl !RefUnwindSafe for UnlockError
impl Send for UnlockError
impl Sync for UnlockError
impl Unpin for UnlockError
impl !UnwindSafe for UnlockError
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