Struct ssh_rs::SessionConnector
source · Implementations§
source§impl<S> SessionConnector<S>where
S: Read + Write,
impl<S> SessionConnector<S>where
S: Read + Write,
sourcepub fn run_local(self) -> LocalSession<S>
pub fn run_local(self) -> LocalSession<S>
To run this ssh session on the local thread
It will return a LocalSession which doesn’t support multithread concurrency
source§impl<S> SessionConnector<S>where
S: Read + Write + Send + 'static,
impl<S> SessionConnector<S>where
S: Read + Write + Send + 'static,
sourcepub fn run_backend(self) -> SessionBroker
pub fn run_backend(self) -> SessionBroker
To spwan a new thread to run this ssh session
It will return a SessionBroker which supports multithread concurrency