Struct ssh::ChannelBroker
source · 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 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