pub struct Agent { /* private fields */ }
Expand description

A structure representing a connection to an SSH agent.

Agents can be used to authenticate a session.

Implementations

Connect to an ssh-agent running on the system.

Close a connection to an ssh-agent.

Request an ssh-agent to list of public keys, and stores them in the internal collection of the handle.

Call identities to get the public keys.

Get list of the identities of this agent.

Attempt public key authentication with the help of ssh-agent.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.