pub enum GlovesError {
Show 13 variants
NotFound,
AlreadyExists,
Unauthorized,
Forbidden,
Expired,
IntegrityViolation,
InvalidInput(String),
GpgDenied,
Validation(ValidationError),
Io(Error),
Serde(Error),
Utf8(FromUtf8Error),
Crypto(String),
}Expand description
Top-level application errors.
Variants§
NotFound
Resource was not found.
AlreadyExists
Secret already exists and overwrite is disallowed.
User or agent is unauthorized.
Forbidden
Operation is forbidden by policy.
Expired
Secret has expired.
IntegrityViolation
Secret ciphertext integrity check failed.
InvalidInput(String)
Input was syntactically valid but semantically unsupported.
GpgDenied
GPG access denied by pass.
Validation(ValidationError)
Validation failure.
Io(Error)
I/O error.
Serde(Error)
JSON serialization error.
Utf8(FromUtf8Error)
UTF-8 conversion error.
Crypto(String)
Cryptography failure.
Trait Implementations§
Source§impl Debug for GlovesError
impl Debug for GlovesError
Source§impl Display for GlovesError
impl Display for GlovesError
Source§impl Error for GlovesError
impl Error for GlovesError
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()
Source§impl From<Error> for GlovesError
impl From<Error> for GlovesError
Source§fn from(source: Error) -> GlovesError
fn from(source: Error) -> GlovesError
Converts to this type from the input type.
Source§impl From<Error> for GlovesError
impl From<Error> for GlovesError
Source§fn from(source: Error) -> GlovesError
fn from(source: Error) -> GlovesError
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for GlovesError
impl From<FromUtf8Error> for GlovesError
Source§fn from(source: FromUtf8Error) -> GlovesError
fn from(source: FromUtf8Error) -> GlovesError
Converts to this type from the input type.
Source§impl From<ValidationError> for GlovesError
impl From<ValidationError> for GlovesError
Source§fn from(source: ValidationError) -> GlovesError
fn from(source: ValidationError) -> GlovesError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GlovesError
impl !RefUnwindSafe for GlovesError
impl Send for GlovesError
impl Sync for GlovesError
impl Unpin for GlovesError
impl UnsafeUnpin for GlovesError
impl !UnwindSafe for GlovesError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more