Struct ssh_rs::LocalSession
source · Implementations
sourceimpl<S> LocalSession<S>where
S: Read + Write,
impl<S> LocalSession<S>where
S: Read + Write,
sourcepub fn open_exec(&mut self) -> SshResult<LocalExec<S>>
pub fn open_exec(&mut self) -> SshResult<LocalExec<S>>
open a LocalExec channel which can excute commands
sourcepub fn open_scp(&mut self) -> SshResult<LocalScp<S>>
pub fn open_scp(&mut self) -> SshResult<LocalScp<S>>
open a LocalScp channel which can download/upload files/directories
sourcepub fn open_shell(&mut self) -> SshResult<LocalShell<S>>
pub fn open_shell(&mut self) -> SshResult<LocalShell<S>>
open a LocalShell channel which can download/upload files/directories
pub fn get_raw_io(&mut self) -> Rc<RefCell<S>>
sourcepub fn open_channel(&mut self) -> SshResult<LocalChannel<S>>
pub fn open_channel(&mut self) -> SshResult<LocalChannel<S>>
open a raw channel
need call .exec()
, .shell()
, .scp()
and so on to convert it to a specific channel
Auto Trait Implementations
impl<S> !RefUnwindSafe for LocalSession<S>
impl<S> !Send for LocalSession<S>
impl<S> !Sync for LocalSession<S>
impl<S> Unpin for LocalSession<S>
impl<S> !UnwindSafe for LocalSession<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