pub trait SSHAgent {
// Required methods
fn list_identities(&mut self) -> Result<Vec<Identity<'static>>>;
fn sign<'a>(
&mut self,
key: impl Into<Identity<'a>>,
data: &[u8],
) -> Result<Signature>;
}
Expand description
A small trait defining the two methods of ssh_agent_client_rs::Client to simplify testing
Required Methods§
fn list_identities(&mut self) -> Result<Vec<Identity<'static>>>
fn sign<'a>( &mut self, key: impl Into<Identity<'a>>, data: &[u8], ) -> Result<Signature>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.