Struct ssh2_patched::Agent
source · [−]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
sourceimpl Agent
impl Agent
sourcepub fn disconnect(&mut self) -> Result<(), Error>
pub fn disconnect(&mut self) -> Result<(), Error>
Close a connection to an ssh-agent.
sourcepub fn list_identities(&mut self) -> Result<(), Error>
pub fn list_identities(&mut self) -> Result<(), Error>
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.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more