pub trait ChildExt {
// Required method
fn wait_timeout(&mut self, dur: Duration) -> Result<Option<ExitStatus>>;
}
Expand description
Extension methods for the standard std::process::Child
type.
Required Methods§
Sourcefn wait_timeout(&mut self, dur: Duration) -> Result<Option<ExitStatus>>
fn wait_timeout(&mut self, dur: Duration) -> Result<Option<ExitStatus>>
Wait for this child to exit, timing out after the duration dur
has
elapsed.
If Ok(None)
is returned then the timeout period elapsed without the
child exiting, and if Ok(Some(..))
is returned then the child exited
with the specified exit code.