pub struct MuxAgent { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl Session for MuxAgent
Only the request_identities
, sign
, and extension
commands are implemented. For
extension
, only the session-bind@openssh.com
and query
extensions are supported.
impl Session for MuxAgent
Only the request_identities
, sign
, and extension
commands are implemented. For
extension
, only the session-bind@openssh.com
and query
extensions are supported.
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 extension<'life0, 'async_trait>(
&'life0 mut self,
request: Extension,
) -> Pin<Box<dyn Future<Output = Result<Option<Extension>, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn extension<'life0, 'async_trait>(
&'life0 mut self,
request: Extension,
) -> Pin<Box<dyn Future<Output = Result<Option<Extension>, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Invoke a custom, vendor-specific extension on the agent.
Source§fn add_identity<'life0, 'async_trait>(
&'life0 mut self,
_identity: AddIdentity,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn add_identity<'life0, 'async_trait>(
&'life0 mut self,
_identity: AddIdentity,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: '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
'life0: 'async_trait,
Self: '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
'life0: 'async_trait,
Self: '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
'life0: 'async_trait,
Self: 'async_trait,
fn remove_identity<'life0, 'async_trait>(
&'life0 mut self,
_identity: RemoveIdentity,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: '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
'life0: 'async_trait,
Self: 'async_trait,
fn remove_all_identities<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: '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
'life0: 'async_trait,
Self: '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
'life0: 'async_trait,
Self: '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
'life0: 'async_trait,
Self: '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
'life0: 'async_trait,
Self: '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
'life0: 'async_trait,
Self: '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
'life0: 'async_trait,
Self: '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
'life0: 'async_trait,
Self: 'async_trait,
fn lock<'life0, 'async_trait>(
&'life0 mut self,
_key: String,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Temporarily lock the agent with a password.
Auto Trait Implementations§
impl Freeze for MuxAgent
impl !RefUnwindSafe for MuxAgent
impl Send for MuxAgent
impl Sync for MuxAgent
impl Unpin for MuxAgent
impl !UnwindSafe for MuxAgent
Blanket Implementations§
Source§impl<T> Agent<TcpListener> for T
impl<T> Agent<TcpListener> for T
Source§impl<T> Agent<UnixListener> for T
impl<T> Agent<UnixListener> for T
Source§fn new_session(&mut self, _socket: &UnixStream) -> impl Session
fn new_session(&mut self, _socket: &UnixStream) -> impl Session
Create a
Session
object for a given socket
.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