pub enum AgentError {
Show 20 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),
}Expand description
Errors from the Auths agent and core operations.
Variants§
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.
Trait Implementations§
Source§impl AuthsErrorInfo for AgentError
impl AuthsErrorInfo for AgentError
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)>
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<AgentError> for AgentError
impl From<AgentError> for AgentError
Source§fn from(err: AgentError) -> Self
fn from(err: AgentError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AgentError
impl !RefUnwindSafe for AgentError
impl Send for AgentError
impl Sync for AgentError
impl Unpin for AgentError
impl UnsafeUnpin for AgentError
impl !UnwindSafe 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
Mutably borrows from an owned value. Read more