pub enum Error {
BadName,
NotAStore,
BadData(Error),
UnsupportedPlatform(String),
IoError(Error),
Other(Box<dyn Error + Send + Sync>),
}
Expand description
OpenPGP-Cert-D errors.
Errors defined by the Shared PGP Certificate Directory.
Variants§
BadName
The name was neither a valid fingerprint, nor a known special name.
NotAStore
The base directory cannot possibly contain a store.
BadData(Error)
Error computing the fingerprint.
This means that the certificate data was malformed (e.g. because it was ASCII-Armored), or the certificate’s OpenPGP version was not supported by this crate.
UnsupportedPlatform(String)
Unsupported platform.
IoError(Error)
An IO error occurred.
Other(Box<dyn Error + Send + Sync>)
Any other error.
This is used to return arbitrary errors from
crate::CertD::insert
, crate::CertD::try_insert
,
crate::CertD::insert_special
, and
crate::CertD::try_insert_special
.
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