#[non_exhaustive]pub enum AgentError {
Show 25 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),
HardwareKeyNotExportable {
operation: 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.
HardwareKeyNotExportable
Operation cannot be completed because the key is hardware-backed (SE/HSM) and the operation requires raw key material.
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()
Source§impl From<AgentError> for InitError
impl From<AgentError> for InitError
Source§fn from(source: AgentError) -> InitError
fn from(source: AgentError) -> InitError
Source§impl From<AgentError> for AgentError
impl From<AgentError> for AgentError
Source§fn from(err: AgentError) -> Self
fn from(err: AgentError) -> Self
Source§impl From<AgentError> for CredentialError
impl From<AgentError> for CredentialError
Source§fn from(err: AgentError) -> Self
fn from(err: AgentError) -> Self
Source§impl From<AgentError> for DeviceError
impl From<AgentError> for DeviceError
Source§fn from(err: AgentError) -> Self
fn from(err: AgentError) -> Self
Source§impl From<AgentError> for SetupError
impl From<AgentError> for SetupError
Source§fn from(err: AgentError) -> Self
fn from(err: AgentError) -> Self
Source§impl From<Error> for AgentError
impl From<Error> for AgentError
Source§fn from(source: Error) -> AgentError
fn from(source: Error) -> AgentError
Auto Trait Implementations§
impl !RefUnwindSafe for AgentError
impl !UnwindSafe for AgentError
impl Freeze for AgentError
impl Send for AgentError
impl Sync for AgentError
impl Unpin for AgentError
impl UnsafeUnpin for AgentError
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
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>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.