pub struct ChannelBroker { /* private fields */ }
Implementations§
Source§impl ChannelBroker
impl ChannelBroker
Sourcepub fn exec(self) -> SshResult<ExecBroker>
pub fn exec(self) -> SshResult<ExecBroker>
open a ExecBroker channel which can excute commands
Sourcepub fn shell(self, tv: TerminalSize) -> SshResult<ShellBrocker>
pub fn shell(self, tv: TerminalSize) -> SshResult<ShellBrocker>
open a ShellBrocker channel which can be used as a pseudo terminal (AKA PTY)
Sourcepub fn exit_status(&self) -> SshResult<u32>
pub fn exit_status(&self) -> SshResult<u32>
https://datatracker.ietf.org/doc/html/rfc4254#section-6.10
Return the command execute status
Sourcepub fn terminate_msg(&self) -> SshResult<String>
pub fn terminate_msg(&self) -> SshResult<String>
https://datatracker.ietf.org/doc/html/rfc4254#section-6.10
Return the terminate message if the command excution was ‘killed’ by a signal
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChannelBroker
impl RefUnwindSafe for ChannelBroker
impl Send for ChannelBroker
impl !Sync for ChannelBroker
impl Unpin for ChannelBroker
impl UnwindSafe for ChannelBroker
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