pub enum Error {
Show 39 variants
ImportMessageFromArmorError(Error),
DecryptMessageError(Error),
DecompressMessageError(Error),
GetMessageContentError(Error),
GetMessageContentEmptyError,
GetMessageEmptyError,
FindSignedSecretKeyForSigningError,
SignMessageError(Error),
ExportSignedMessageToArmoredBytesError(Error),
EncryptMessageError(Error),
ExportEncryptedMessageToArmorError(Error),
CompressMessageError(Error),
ParseBodyWithUriError(Error, Uri),
FetchResponseError(Error, Uri),
ParsePublicKeyError(Error, Uri),
FindPublicKeyError(String),
BuildSecretKeyParamsError(SecretKeyParamsBuilderError),
GenerateSecretKeyError(Error),
SignSecretKeyError(Error),
VerifySecretKeyError(Error),
BuildPublicKeyParamsError(SubkeyParamsBuilderError),
SignPublicKeyError(Error),
VerifyPublicKeyError(Error),
ReadArmoredPublicKeyError(Error, PathBuf),
ParseArmoredPublicKeyError(Error, PathBuf),
ReadArmoredSecretKeyFromPathError(Error, PathBuf),
ParseArmoredSecretKeyFromPathError(Error, PathBuf),
ParseArmoredSecretKeyFromStringError(Error),
ReadStandaloneSignatureFromArmoredBytesError(Error),
VerifySignatureError(Error),
ParseEmailAddressError(String),
ParseUrlError(ParseError, String),
ParseUriError(InvalidUri, String),
ParseFilePathError(StripPrefixError, Url),
ParseResponseError(Error),
RedirectOverflowError,
ParseBodyError(Error),
ParseCertError(Error),
JoinError(JoinError),
}
Expand description
The global Error
enum of the library.
Variants§
ImportMessageFromArmorError(Error)
DecryptMessageError(Error)
DecompressMessageError(Error)
GetMessageContentError(Error)
GetMessageContentEmptyError
GetMessageEmptyError
FindSignedSecretKeyForSigningError
SignMessageError(Error)
ExportSignedMessageToArmoredBytesError(Error)
EncryptMessageError(Error)
ExportEncryptedMessageToArmorError(Error)
CompressMessageError(Error)
ParseBodyWithUriError(Error, Uri)
FetchResponseError(Error, Uri)
ParsePublicKeyError(Error, Uri)
FindPublicKeyError(String)
BuildSecretKeyParamsError(SecretKeyParamsBuilderError)
GenerateSecretKeyError(Error)
SignSecretKeyError(Error)
VerifySecretKeyError(Error)
BuildPublicKeyParamsError(SubkeyParamsBuilderError)
SignPublicKeyError(Error)
VerifyPublicKeyError(Error)
ReadArmoredPublicKeyError(Error, PathBuf)
ParseArmoredPublicKeyError(Error, PathBuf)
ReadArmoredSecretKeyFromPathError(Error, PathBuf)
ParseArmoredSecretKeyFromPathError(Error, PathBuf)
ParseArmoredSecretKeyFromStringError(Error)
ReadStandaloneSignatureFromArmoredBytesError(Error)
VerifySignatureError(Error)
ParseEmailAddressError(String)
ParseUrlError(ParseError, String)
ParseUriError(InvalidUri, String)
ParseFilePathError(StripPrefixError, Url)
ParseResponseError(Error)
RedirectOverflowError
ParseBodyError(Error)
ParseCertError(Error)
JoinError(JoinError)
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)>
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