pub enum GPGError {
ParseError,
NoValidOpenPGPData,
MissingPublicKey,
MissingSecretKey,
KeyAlreadyExists(Key),
BadPassphrase,
KeyError,
}Expand description
An enum representing errors that can occur when working with GPG.
Variants§
ParseError
An error occurred while parsing data.
NoValidOpenPGPData
The data input was not valid OpenPGP data.
MissingPublicKey
A required public key was not found.
MissingSecretKey
A required secret key was not found.
KeyAlreadyExists(Key)
Key already exists
BadPassphrase
An error involving the passphrase occurred
KeyError
An error occurred with a key.
Trait Implementations§
Source§impl Error for GPGError
impl Error for GPGError
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()
Auto Trait Implementations§
impl Freeze for GPGError
impl RefUnwindSafe for GPGError
impl Send for GPGError
impl Sync for GPGError
impl Unpin for GPGError
impl UnwindSafe for GPGError
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