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§
Sourcefn spawn(&self, invocation: &BoxInvocation<'_>) -> Result<Box<dyn RunningBox>>
fn spawn(&self, invocation: &BoxInvocation<'_>) -> Result<Box<dyn RunningBox>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".