pub struct LocalExec<S: Read + Write> { /* private fields */ }
Implementations§
source§impl<S> ChannelExec<S>
impl<S> ChannelExec<S>
sourcepub fn exec_command(&mut self, command: &str) -> SshResult<()>
pub fn exec_command(&mut self, command: &str) -> SshResult<()>
Send an executable command to the server
sourcepub fn get_output(&mut self) -> SshResult<Vec<u8>>
pub fn get_output(&mut self) -> SshResult<Vec<u8>>
Get the output of the previous command
Methods from Deref<Target = Channel<S>>§
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§
source§impl<S> Deref for ChannelExec<S>
impl<S> Deref for ChannelExec<S>
Auto Trait Implementations§
impl<S> !RefUnwindSafe for ChannelExec<S>
impl<S> !Send for ChannelExec<S>
impl<S> !Sync for ChannelExec<S>
impl<S> Unpin for ChannelExec<S>
impl<S> !UnwindSafe for ChannelExec<S>
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