pub enum Error {
Show 40 variants
ParseMmlError(Vec<Rich<'static, char>>, String),
WriteCompiledPartToVecError(Error),
ReadAttachmentError(Error, PathBuf),
PgpSignMissingSenderError,
GetSecretKeyFromKeyringError(Error),
ReadSecretKeyFromKeyringError(Error),
ReadSecretKeyFromPathError(Error, PathBuf),
GetSecretKeyPassphraseFromKeyringError(Error),
GetPgpSecretKeyFromKeyringError(Error),
GetNativePgpSecretKeyNoneError(String),
FindPgpPublicKeyError(String),
EncryptNativePgpError(Error),
DecryptNativePgpError(Error),
SignNativePgpError(Error),
ReadNativePgpSignatureError(Error),
VerifyNativePgpSignatureError(Error),
ReadNativePgpSecretKeyError(Error),
ParseMimeMessageError,
WriteAttachmentError(Error, PathBuf),
WriteMessageError(Error),
ParsePgpDecryptedPartError,
PgpDecryptMissingRecipientError,
ParseMessageError,
ParseMmlEmptyBodyError,
ParseMmlEmptyBodyContentError,
CompileMmlMessageToVecError(Error),
CompileMmlMessageToStringError(Error),
ParseRawEmailError,
BuildEmailError(Error),
EncryptCommandError(Error),
DecryptCommandError(Error),
SignCommandError(Error),
VerifyCommandError(Error),
GetContextError(Error),
GetHomeDirPathError(PathBuf),
SetHomeDirError(Error, PathBuf),
EncryptGpgError(Error),
DecryptGpgError(Error),
SignGpgError(Error),
VerifyGpgError(Error),
}
Expand description
The global Error
enum of the library.
Variants§
ParseMmlError(Vec<Rich<'static, char>>, String)
WriteCompiledPartToVecError(Error)
ReadAttachmentError(Error, PathBuf)
PgpSignMissingSenderError
Available on crate feature
pgp
only.GetSecretKeyFromKeyringError(Error)
Available on crate feature
pgp-native
only.ReadSecretKeyFromKeyringError(Error)
Available on crate feature
pgp-native
only.ReadSecretKeyFromPathError(Error, PathBuf)
Available on crate feature
pgp-native
only.GetSecretKeyPassphraseFromKeyringError(Error)
Available on crate feature
pgp-native
only.GetPgpSecretKeyFromKeyringError(Error)
Available on crate feature
pgp-native
only.GetNativePgpSecretKeyNoneError(String)
FindPgpPublicKeyError(String)
EncryptNativePgpError(Error)
Available on crate feature
pgp-native
only.DecryptNativePgpError(Error)
Available on crate feature
pgp-native
only.SignNativePgpError(Error)
Available on crate feature
pgp-native
only.ReadNativePgpSignatureError(Error)
Available on crate feature
pgp-native
only.VerifyNativePgpSignatureError(Error)
Available on crate feature
pgp-native
only.ReadNativePgpSecretKeyError(Error)
Available on crate feature
pgp-native
only.ParseMimeMessageError
WriteAttachmentError(Error, PathBuf)
WriteMessageError(Error)
ParsePgpDecryptedPartError
PgpDecryptMissingRecipientError
ParseMessageError
ParseMmlEmptyBodyError
ParseMmlEmptyBodyContentError
CompileMmlMessageToVecError(Error)
CompileMmlMessageToStringError(Error)
ParseRawEmailError
BuildEmailError(Error)
EncryptCommandError(Error)
Available on crate feature
pgp-commands
only.DecryptCommandError(Error)
Available on crate feature
pgp-commands
only.SignCommandError(Error)
Available on crate feature
pgp-commands
only.VerifyCommandError(Error)
Available on crate feature
pgp-commands
only.GetContextError(Error)
Available on crate feature
pgp-gpg
only.GetHomeDirPathError(PathBuf)
Available on crate feature
pgp-gpg
only.SetHomeDirError(Error, PathBuf)
Available on crate feature
pgp-gpg
only.EncryptGpgError(Error)
Available on crate feature
pgp-gpg
only.DecryptGpgError(Error)
Available on crate feature
pgp-gpg
only.SignGpgError(Error)
Available on crate feature
pgp-gpg
only.VerifyGpgError(Error)
Available on crate feature
pgp-gpg
only.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<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
source§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
source§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
source§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
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
source§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
source§impl<T> ConvUtil for T
impl<T> ConvUtil for T
source§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
Approximate the subject to a given type with the default scheme.
source§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
Approximate the subject to a given type with a specific scheme.