[−][src]Trait rye_runtime::Spawner
The value for spawning test cases.
Required methods
fn spawn(&mut self, fut: BoxFuture<'static, ()>) -> Result<()>
Spawn a task to execute a test case.
fn spawn_local(&mut self, fut: LocalBoxFuture<'static, ()>) -> Result<()>
Spawn a task to execute a test case onto the current thread.
fn spawn_blocking(
&mut self,
f: Box<dyn FnOnce() + Send + 'static>
) -> Result<()>
&mut self,
f: Box<dyn FnOnce() + Send + 'static>
) -> Result<()>
Spawn a task to execute a test case which may block the running thread.
Implementations on Foreign Types
impl<'_, T: ?Sized> Spawner for &'_ mut T where
T: Spawner,
[src]
T: Spawner,
fn spawn(&mut self, fut: BoxFuture<'static, ()>) -> Result<()>
[src]
fn spawn_local(&mut self, fut: LocalBoxFuture<'static, ()>) -> Result<()>
[src]
fn spawn_blocking(
&mut self,
f: Box<dyn FnOnce() + Send + 'static>
) -> Result<()>
[src]
&mut self,
f: Box<dyn FnOnce() + Send + 'static>
) -> Result<()>
impl<T: ?Sized> Spawner for Box<T> where
T: Spawner,
[src]
T: Spawner,
fn spawn(&mut self, fut: BoxFuture<'static, ()>) -> Result<()>
[src]
fn spawn_local(&mut self, fut: LocalBoxFuture<'static, ()>) -> Result<()>
[src]
fn spawn_blocking(
&mut self,
f: Box<dyn FnOnce() + Send + 'static>
) -> Result<()>
[src]
&mut self,
f: Box<dyn FnOnce() + Send + 'static>
) -> Result<()>