pub struct Subprocess { /* private fields */ }Expand description
Subprocess wraps a single async subprocess. It is entirely passive: it expects the caller to notify it when its fds are ready for reading, as well as call Finish() to reap the child once done() is true.
Implementations§
Source§impl Subprocess
impl Subprocess
pub fn on_pipe_ready(&mut self)
Sourcepub fn finish(&mut self) -> ExitStatus
pub fn finish(&mut self) -> ExitStatus
Returns ExitSuccess on successful process exit, ExitInterrupted if the process was interrupted, ExitFailure if it otherwise failed.
Auto Trait Implementations§
impl Freeze for Subprocess
impl RefUnwindSafe for Subprocess
impl Send for Subprocess
impl Sync for Subprocess
impl Unpin for Subprocess
impl UnwindSafe for Subprocess
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