pub trait ChildExt {
// Required method
fn wait_with_timeout(
&mut self,
timeout: Duration
) -> Result<Option<ExitStatus>>;
}
Expand description
Extension trait for utilities on std::process::Child
Required Methods§
sourcefn wait_with_timeout(&mut self, timeout: Duration) -> Result<Option<ExitStatus>>
fn wait_with_timeout(&mut self, timeout: Duration) -> Result<Option<ExitStatus>>
Same as Child.wait(), but will return with an error after the specified timeout.