Trait SshSession
Source pub trait SshSession {
// Required methods
fn connect<'async_trait, A>(
user: impl 'async_trait + Into<String> + Send,
auth: impl 'async_trait + Into<AuthMethod> + Send,
addrs: A,
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
where Self: Sized + 'async_trait,
A: 'async_trait + ToSocketAddrs + Send;
fn call<'life0, 'life1, 'async_trait>(
&'life0 mut self,
command: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<u32>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn close<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}