#[non_exhaustive]pub enum AgentError {
Show 24 variants
KeyNotFound,
IncorrectPassphrase,
MissingPassphrase,
SecurityError(String),
CryptoError(String),
KeyDeserializationError(String),
SigningFailed(String),
Proto(String),
IO(Error),
GitError(String),
InvalidInput(String),
MutexError(String),
StorageError(String),
UserInputCancelled,
BackendUnavailable {
backend: &'static str,
reason: String,
},
StorageLocked,
BackendInitFailed {
backend: &'static str,
error: String,
},
CredentialTooLarge {
max_bytes: usize,
actual_bytes: usize,
},
AgentLocked,
WeakPassphrase(String),
HsmPinLocked,
HsmDeviceRemoved,
HsmSessionExpired,
HsmUnsupportedMechanism(String),
}Expand description
Errors from the Auths agent and core operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
KeyNotFound
The requested key was not found.
IncorrectPassphrase
The provided passphrase is incorrect.
MissingPassphrase
A passphrase is required but was not provided.
SecurityError(String)
A platform security framework error occurred.
CryptoError(String)
A cryptographic operation failed.
KeyDeserializationError(String)
Failed to deserialize a key.
SigningFailed(String)
Signing operation failed.
Proto(String)
A protocol error occurred.
IO(Error)
An I/O error occurred.
GitError(String)
A Git operation failed.
InvalidInput(String)
Invalid input was provided.
MutexError(String)
A mutex lock was poisoned.
StorageError(String)
A storage operation failed.
UserInputCancelled
The user cancelled an interactive prompt.
Backend is not available on this platform or configuration
StorageLocked
Storage is locked and requires authentication
BackendInitFailed
Backend initialization failed
Fields
CredentialTooLarge
Credential size exceeds platform limit
Fields
AgentLocked
Agent is locked due to idle timeout
WeakPassphrase(String)
The passphrase does not meet strength requirements.
HsmPinLocked
HSM PIN is locked after too many failed attempts.
HsmDeviceRemoved
HSM device was removed during operation.
HsmSessionExpired
HSM session expired or was closed unexpectedly.
HsmUnsupportedMechanism(String)
HSM does not support the requested cryptographic mechanism.
Trait Implementations§
Source§impl AuthsErrorInfo for AgentError
impl AuthsErrorInfo for AgentError
Source§fn error_code(&self) -> &'static str
fn error_code(&self) -> &'static str
Source§fn suggestion(&self) -> Option<&'static str>
fn suggestion(&self) -> Option<&'static str>
Source§impl Debug for AgentError
impl Debug for AgentError
Source§impl Display for AgentError
impl Display for AgentError
Source§impl Error for AgentError
impl Error for AgentError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()