pub struct Client<Stream>{ /* private fields */ }
Expand description
SSH agent client
Implementations§
Trait Implementations§
Source§impl<Stream> Session for Client<Stream>
impl<Stream> Session for Client<Stream>
Source§fn request_identities<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Identity>, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn request_identities<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Identity>, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Request a list of keys managed by this session.
Source§fn sign<'life0, 'async_trait>(
&'life0 mut self,
request: SignRequest,
) -> Pin<Box<dyn Future<Output = Result<Signature, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn sign<'life0, 'async_trait>(
&'life0 mut self,
request: SignRequest,
) -> Pin<Box<dyn Future<Output = Result<Signature, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Perform a private key signature operation.
Source§fn add_identity<'life0, 'async_trait>(
&'life0 mut self,
identity: AddIdentity,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_identity<'life0, 'async_trait>(
&'life0 mut self,
identity: AddIdentity,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Add a private key to the agent.
Source§fn add_identity_constrained<'life0, 'async_trait>(
&'life0 mut self,
identity: AddIdentityConstrained,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_identity_constrained<'life0, 'async_trait>(
&'life0 mut self,
identity: AddIdentityConstrained,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Add a private key to the agent with a set of constraints.
Source§fn remove_identity<'life0, 'async_trait>(
&'life0 mut self,
identity: RemoveIdentity,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn remove_identity<'life0, 'async_trait>(
&'life0 mut self,
identity: RemoveIdentity,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Remove private key from an agent.
Source§fn remove_all_identities<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn remove_all_identities<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Remove all keys from an agent.
Source§fn add_smartcard_key<'life0, 'async_trait>(
&'life0 mut self,
key: SmartcardKey,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_smartcard_key<'life0, 'async_trait>(
&'life0 mut self,
key: SmartcardKey,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Add a key stored on a smartcard.
Source§fn add_smartcard_key_constrained<'life0, 'async_trait>(
&'life0 mut self,
key: AddSmartcardKeyConstrained,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_smartcard_key_constrained<'life0, 'async_trait>(
&'life0 mut self,
key: AddSmartcardKeyConstrained,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Add a key stored on a smartcard with a set of constraints.
Source§fn remove_smartcard_key<'life0, 'async_trait>(
&'life0 mut self,
key: SmartcardKey,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn remove_smartcard_key<'life0, 'async_trait>(
&'life0 mut self,
key: SmartcardKey,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Remove a smartcard key from the agent.
Source§fn lock<'life0, 'async_trait>(
&'life0 mut self,
key: String,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn lock<'life0, 'async_trait>(
&'life0 mut self,
key: String,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Temporarily lock the agent with a password.
Source§fn unlock<'life0, 'async_trait>(
&'life0 mut self,
key: String,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn unlock<'life0, 'async_trait>(
&'life0 mut self,
key: String,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Unlock the agent with a password.
Auto Trait Implementations§
impl<Stream> Freeze for Client<Stream>where
Stream: Freeze,
impl<Stream> RefUnwindSafe for Client<Stream>where
Stream: RefUnwindSafe,
impl<Stream> Send for Client<Stream>
impl<Stream> Sync for Client<Stream>where
Stream: Sync,
impl<Stream> Unpin for Client<Stream>
impl<Stream> UnwindSafe for Client<Stream>where
Stream: UnwindSafe,
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