pub struct AgentConnection {
pub client: AgentClient<UnixStream>,
pub identities: Vec<AgentIdentity>,
}Expand description
A live connection to an SSH agent with its advertised identities.
Obtained via connect_agent. The connection is used by
[GitwaySession::authenticate_with_agent] to sign authentication
challenges without ever loading the private key material into this process.
Fields§
§client: AgentClient<UnixStream>The underlying agent client over the Unix-domain socket.
identities: Vec<AgentIdentity>Identities advertised by the agent (public keys and/or certificates).
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AgentConnection
impl RefUnwindSafe for AgentConnection
impl Send for AgentConnection
impl Sync for AgentConnection
impl Unpin for AgentConnection
impl UnsafeUnpin for AgentConnection
impl UnwindSafe for AgentConnection
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