pub struct RunningProcess { /* private fields */ }Expand description
A running child process with non-blocking output/status polling.
Implementations§
Source§impl RunningProcess
impl RunningProcess
Sourcepub fn poll(&mut self) -> Result<ProcessUpdate>
pub fn poll(&mut self) -> Result<ProcessUpdate>
Drain retained output and check for process completion without waiting.
§Errors
Returns an I/O error when process status cannot be read or the shared output buffer is poisoned.
Sourcepub fn cancel(&mut self) -> Result<ProcessExit>
pub fn cancel(&mut self) -> Result<ProcessExit>
Terminate and reap the child, returning its terminal status.
§Errors
Returns an I/O error when process status cannot be read or the child cannot be terminated and reaped.
Trait Implementations§
Source§impl Debug for RunningProcess
impl Debug for RunningProcess
Source§impl Drop for RunningProcess
impl Drop for RunningProcess
Auto Trait Implementations§
impl !RefUnwindSafe for RunningProcess
impl !UnwindSafe for RunningProcess
impl Freeze for RunningProcess
impl Send for RunningProcess
impl Sync for RunningProcess
impl Unpin for RunningProcess
impl UnsafeUnpin for RunningProcess
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