pub enum AuthyError {
Show 21 variants
VaultNotInitialized,
VaultAlreadyExists(String),
SecretNotFound(String),
SecretAlreadyExists(String),
PolicyNotFound(String),
PolicyAlreadyExists(String),
AccessDenied {
secret: String,
scope: String,
},
AuthFailed(String),
InvalidToken,
TokenExpired,
TokenRevoked,
SessionNotFound(String),
TokenReadOnly,
RunOnly,
Encryption(String),
Decryption(String),
Serialization(String),
AuditChainBroken(usize),
InvalidKeyfile(String),
Io(Error),
Other(String),
}Variants§
VaultNotInitialized
VaultAlreadyExists(String)
SecretNotFound(String)
SecretAlreadyExists(String)
PolicyNotFound(String)
PolicyAlreadyExists(String)
AccessDenied
AuthFailed(String)
InvalidToken
TokenExpired
TokenRevoked
SessionNotFound(String)
TokenReadOnly
RunOnly
Encryption(String)
Decryption(String)
Serialization(String)
AuditChainBroken(usize)
InvalidKeyfile(String)
Io(Error)
Other(String)
Implementations§
Source§impl AuthyError
impl AuthyError
Trait Implementations§
Source§impl Debug for AuthyError
impl Debug for AuthyError
Source§impl Display for AuthyError
impl Display for AuthyError
Source§impl Error for AuthyError
impl Error for AuthyError
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 AuthyError
impl !RefUnwindSafe for AuthyError
impl Send for AuthyError
impl Sync for AuthyError
impl Unpin for AuthyError
impl UnsafeUnpin for AuthyError
impl !UnwindSafe for AuthyError
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