pub enum Error {
Base64Decode(Error),
EllipticCurve(Error),
DuplicateUserId {
user_id: OpenPgpUserId,
},
InvalidOpenPgpVersion(String),
KeyData(String),
NetHsm(String),
Pgp(Error),
PrivateKeyPassphraseProtected,
UnsupportedMultipleComponentKeys,
UnsupportedKeyFormat {
public_params: Box<PublicParams>,
},
UserIdTooLarge {
user_id: String,
},
}
Variants§
Base64Decode(Error)
A Base64 encoded string can not be decode
EllipticCurve(Error)
Elliptic curve error
DuplicateUserId
Duplicate OpenPGP User ID
Fields
§
user_id: OpenPgpUserId
InvalidOpenPgpVersion(String)
Provided OpenPGP version is invalid
KeyData(String)
Provided key data is invalid
NetHsm(String)
NetHsm error
Pgp(Error)
OpenPGP error
PrivateKeyPassphraseProtected
The Transferable Secret Key is passphrase protected
UnsupportedMultipleComponentKeys
Multiple component keys are unsupported
UnsupportedKeyFormat
The key format used is unsupported
UserIdTooLarge
The User ID is too large
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()
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