pub enum SpectreError {
}Variants§
InvalidAlgorithm(u32)
InvalidResultType(String)
InvalidKeyPurpose(String)
InvalidCounter(i64)
InvalidFileFormat(String)
KeyDerivationFailed
PasswordGenerationFailed
EncryptionFailed
DecryptionFailed
UserSecretMismatch
Io(Error)
Json(Error)
MissingField(String)
Trait Implementations§
Source§impl Debug for SpectreError
impl Debug for SpectreError
Source§impl Display for SpectreError
impl Display for SpectreError
Source§impl Error for SpectreError
impl Error for SpectreError
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 SpectreError
impl From<Error> for SpectreError
Auto Trait Implementations§
impl Freeze for SpectreError
impl !RefUnwindSafe for SpectreError
impl Send for SpectreError
impl Sync for SpectreError
impl Unpin for SpectreError
impl !UnwindSafe for SpectreError
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