Struct ssh_rs::LocalSession
source · Implementations§
source§impl<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