Skip to main content

RunningBox

Trait RunningBox 

Source
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§

Source

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.

Source

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".

Implementors§