pub trait RunningBox {
// Required methods
fn try_wait(&mut self) -> Result<Option<(Option<i32>, Option<String>)>>;
fn forward(&mut self, signal: ForwardedSignal);
}Expand description
A box that has started and not yet finished.
Required Methods§
Sourcefn try_wait(&mut self) -> Result<Option<(Option<i32>, Option<String>)>>
fn try_wait(&mut self) -> Result<Option<(Option<i32>, Option<String>)>>
Reports the terminal result if the box has ended, without blocking.
§Errors
When the child’s state cannot be read.
Sourcefn forward(&mut self, signal: ForwardedSignal)
fn forward(&mut self, signal: ForwardedSignal)
Forwards a signal the caller asked to pass on.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".