pub struct AgentClient { /* private fields */ }
Expand description
A SSH Agent client
Implementations§
Source§impl AgentClient
impl AgentClient
Sourcepub async fn new(path: impl AsRef<Path>) -> Result<Self, Error>
pub async fn new(path: impl AsRef<Path>) -> Result<Self, Error>
Create a new client
path
is a Unix socket to a ssh-agent, such as that from $SSH_AUTH_SOCK
.
pub async fn keys(&mut self) -> Result<Vec<SignKey>>
pub async fn sign_auth( &mut self, key: &SignKey, msg: &AuthSigMsg<'_>, ) -> Result<OwnedSig>
Auto Trait Implementations§
impl !Freeze for AgentClient
impl RefUnwindSafe for AgentClient
impl Send for AgentClient
impl Sync for AgentClient
impl Unpin for AgentClient
impl UnwindSafe for AgentClient
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