#[non_exhaustive]
pub enum Error {
Show 20 variants
Io(Error),
Git(Error),
Gpg(Error),
Utf8(FromUtf8Error),
Generic(&'static str),
GenericDyn(String),
PathError(StripPrefixError),
PatternError(PatternError),
GlobError(GlobError),
Utf8Error(Utf8Error),
RecipientNotInKeyRing(String),
ConfigError(ConfigError),
SerError(Error),
ReqwestError(Error),
AnyhowError(Error),
NoneError,
HexError(FromHexError),
FmtError(Error),
TotpUrlError(TotpUrlError),
SystemTimeError(SystemTimeError),
}
Expand description
A enum that contains the different types of errors that the library returns as part of Result’s.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(Error)
Git(Error)
Gpg(Error)
Utf8(FromUtf8Error)
Generic(&'static str)
GenericDyn(String)
PathError(StripPrefixError)
PatternError(PatternError)
GlobError(GlobError)
Utf8Error(Utf8Error)
RecipientNotInKeyRing(String)
ConfigError(ConfigError)
SerError(Error)
ReqwestError(Error)
AnyhowError(Error)
NoneError
HexError(FromHexError)
FmtError(Error)
TotpUrlError(TotpUrlError)
SystemTimeError(SystemTimeError)
Trait Implementations§
source§impl From<ConfigError> for Error
impl From<ConfigError> for Error
source§fn from(err: ConfigError) -> Self
fn from(err: ConfigError) -> Self
Converts to this type from the input type.
source§impl From<Error> for VerificationError
impl From<Error> for VerificationError
source§impl From<FromHexError> for Error
impl From<FromHexError> for Error
source§fn from(err: FromHexError) -> Self
fn from(err: FromHexError) -> Self
Converts to this type from the input type.
source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl From<PatternError> for Error
impl From<PatternError> for Error
source§fn from(err: PatternError) -> Self
fn from(err: PatternError) -> Self
Converts to this type from the input type.
source§impl From<PoisonError<MutexGuard<'_, PasswordStore>>> for Error
impl From<PoisonError<MutexGuard<'_, PasswordStore>>> for Error
source§fn from(_err: PoisonError<MutexGuard<'_, PasswordStore>>) -> Self
fn from(_err: PoisonError<MutexGuard<'_, PasswordStore>>) -> Self
Converts to this type from the input type.
source§impl From<PoisonError<MutexGuard<'_, Vec<PasswordStore, Global>>>> for Error
impl From<PoisonError<MutexGuard<'_, Vec<PasswordStore, Global>>>> for Error
source§fn from(_err: PoisonError<MutexGuard<'_, Vec<PasswordStore>>>) -> Self
fn from(_err: PoisonError<MutexGuard<'_, Vec<PasswordStore>>>) -> Self
Converts to this type from the input type.
source§impl From<StripPrefixError> for Error
impl From<StripPrefixError> for Error
source§fn from(err: StripPrefixError) -> Self
fn from(err: StripPrefixError) -> Self
Converts to this type from the input type.
source§impl From<SystemTimeError> for Error
impl From<SystemTimeError> for Error
source§fn from(err: SystemTimeError) -> Self
fn from(err: SystemTimeError) -> Self
Converts to this type from the input type.
source§impl From<TotpUrlError> for Error
impl From<TotpUrlError> for Error
source§fn from(err: TotpUrlError) -> Self
fn from(err: TotpUrlError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere Scheme: ApproxScheme,
§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.
§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,
§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.
§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
§impl<T> ConvUtil for T
impl<T> ConvUtil for T
§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, DefaultApprox>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where Self: Sized + ApproxInto<Dst, DefaultApprox>,
Approximate the subject to a given type with the default scheme.
§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where Self: Sized + ApproxInto<Dst, Scheme>, Scheme: ApproxScheme,
Approximate the subject to a given type with a specific scheme.
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<Src> TryFrom<Src> for Src
impl<Src> TryFrom<Src> for Src
§impl<Src, Dst> TryInto<Dst> for Srcwhere
Dst: TryFrom<Src>,
impl<Src, Dst> TryInto<Dst> for Srcwhere Dst: TryFrom<Src>,
§impl<Src> ValueFrom<Src> for Src
impl<Src> ValueFrom<Src> for Src
§fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
Convert the given value into an exactly equivalent representation.
§impl<Src, Dst> ValueInto<Dst> for Srcwhere
Dst: ValueFrom<Src>,
impl<Src, Dst> ValueInto<Dst> for Srcwhere Dst: ValueFrom<Src>,
§fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
Convert the subject into an exactly equivalent representation.