pub enum SigningStatus {
NoAgent,
AgentEmpty,
KeysListed,
Unknown(i32),
}Expand description
Pure classification of ssh-add -l’s exit code into an actionable
signing-viability status. Isolated from any I/O so it can be
unit-tested for all three documented exit codes without a live agent.
Variants§
NoAgent
Exit 2 — no ssh-agent reachable (SSH_AUTH_SOCK unset or dead).
AgentEmpty
Exit 1 — agent reachable but has no identities loaded.
KeysListed
Exit 0 — agent has at least one key loaded (caller still must check whether it’s THIS key, via a fingerprint match).
Unknown(i32)
Any other exit code — genuinely unexpected; degrade rather than crash or silently misclassify.
Trait Implementations§
Source§impl Clone for SigningStatus
impl Clone for SigningStatus
Source§fn clone(&self) -> SigningStatus
fn clone(&self) -> SigningStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SigningStatus
Source§impl Debug for SigningStatus
impl Debug for SigningStatus
impl Eq for SigningStatus
Source§impl PartialEq for SigningStatus
impl PartialEq for SigningStatus
impl StructuralPartialEq for SigningStatus
Auto Trait Implementations§
impl Freeze for SigningStatus
impl RefUnwindSafe for SigningStatus
impl Send for SigningStatus
impl Sync for SigningStatus
impl Unpin for SigningStatus
impl UnsafeUnpin for SigningStatus
impl UnwindSafe for SigningStatus
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