pub struct SessionBroker { /* private fields */ }
Implementations§
Source§impl SessionBroker
impl SessionBroker
Sourcepub fn open_exec(&mut self) -> SshResult<ExecBroker>
pub fn open_exec(&mut self) -> SshResult<ExecBroker>
open a ExecBroker channel which can excute commands
Sourcepub fn open_shell(&mut self) -> SshResult<ShellBrocker>
pub fn open_shell(&mut self) -> SshResult<ShellBrocker>
open a ShellBrocker channel which can be used as a pseudo terminal (AKA PTY)
Sourcepub fn open_shell_terminal(
&mut self,
tv: TerminalSize,
) -> SshResult<ShellBrocker>
pub fn open_shell_terminal( &mut self, tv: TerminalSize, ) -> SshResult<ShellBrocker>
open a ShellBrocker channel
custom terminal dimensions
Sourcepub fn open_channel(&mut self) -> SshResult<ChannelBroker>
pub fn open_channel(&mut self) -> SshResult<ChannelBroker>
open a raw channel
need call .exec()
, .shell()
, .scp()
and so on to convert it to a specific channel
Auto Trait Implementations§
impl Freeze for SessionBroker
impl RefUnwindSafe for SessionBroker
impl Send for SessionBroker
impl Sync for SessionBroker
impl Unpin for SessionBroker
impl UnwindSafe for SessionBroker
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more