Struct ssh_rs::SessionConnector
source · Implementations
sourceimpl<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
sourceimpl<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
Auto Trait Implementations
impl<S> !RefUnwindSafe for SessionConnector<S>
impl<S> Send for SessionConnector<S>where
S: Send,
impl<S> Sync for SessionConnector<S>where
S: Sync,
impl<S> Unpin for SessionConnector<S>where
S: Unpin,
impl<S> !UnwindSafe for SessionConnector<S>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more