pub struct SshChildProcess { /* private fields */ }
Implementations§
Source§impl SshChildProcess
impl SshChildProcess
pub async fn async_wait(&mut self) -> Result<ExitStatus>
Trait Implementations§
Source§impl Child for SshChildProcess
impl Child for SshChildProcess
Source§fn try_wait(&mut self) -> Result<Option<ExitStatus>>
fn try_wait(&mut self) -> Result<Option<ExitStatus>>
Poll the child to see if it has completed.
Does not block.
Returns None if the child has not yet terminated,
else returns its exit status.
Source§fn wait(&mut self) -> Result<ExitStatus>
fn wait(&mut self) -> Result<ExitStatus>
Blocks execution until the child process has completed,
yielding its exit status.
Source§fn process_id(&self) -> Option<u32>
fn process_id(&self) -> Option<u32>
Returns the process identifier of the child process,
if applicable
Source§impl ChildKiller for SshChildProcess
impl ChildKiller for SshChildProcess
Auto Trait Implementations§
impl Freeze for SshChildProcess
impl RefUnwindSafe for SshChildProcess
impl Send for SshChildProcess
impl Sync for SshChildProcess
impl Unpin for SshChildProcess
impl UnwindSafe for SshChildProcess
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