#[non_exhaustive]pub enum SigningError {
IdentityFrozen(String),
KeyResolution(String),
SigningFailed(String),
InvalidPassphrase,
PemEncoding(String),
AgentUnavailable(String),
AgentSigningFailed(AgentSigningError),
PassphraseExhausted {
attempts: usize,
},
KeychainUnavailable(String),
KeyDecryptionFailed(String),
}Expand description
Errors from the signing pipeline.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IdentityFrozen(String)
The identity is in a freeze state and signing is not permitted.
KeyResolution(String)
The requested key alias could not be resolved from the keychain.
SigningFailed(String)
The cryptographic signing operation failed.
InvalidPassphrase
The supplied passphrase was incorrect.
PemEncoding(String)
SSHSIG PEM encoding failed after signing.
The agent is not available (platform unsupported, not installed, or not reachable).
AgentSigningFailed(AgentSigningError)
The agent accepted the signing request but it failed.
PassphraseExhausted
All passphrase attempts were exhausted without a successful decryption.
The platform keychain could not be accessed.
KeyDecryptionFailed(String)
The encrypted key material could not be decrypted.
Trait Implementations§
Source§impl Debug for SigningError
impl Debug for SigningError
Source§impl Display for SigningError
impl Display for SigningError
Source§impl Error for SigningError
impl Error for SigningError
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 SigningError
impl RefUnwindSafe for SigningError
impl Send for SigningError
impl Sync for SigningError
impl Unpin for SigningError
impl UnsafeUnpin for SigningError
impl UnwindSafe for SigningError
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