Skip to main content

SpawnBox

Trait SpawnBox 

Source
pub trait SpawnBox {
    // Required method
    fn spawn(
        &self,
        invocation: &BoxInvocation<'_>,
    ) -> Result<Box<dyn RunningBox>>;
}
Expand description

How a box is started. The default starts a real process; a test supplies its own.

Required Methods§

Source

fn spawn(&self, invocation: &BoxInvocation<'_>) -> Result<Box<dyn RunningBox>>

Starts the box, or reports why it could not start.

§Errors

When the interpreter cannot be executed.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§