[−][src]Trait futures_net::runtime::Spawner
The value for spawning cases.
Required methods
fn spawn(&mut self, fut: BoxFuture<'static, ()>) -> Result<()>
Spawn a task to execute a case.
fn spawn_local(&mut self, fut: LocalBoxFuture<'static, ()>) -> Result<()>
Spawn a task to execute a case onto the current thread.
fn block(&mut self, f: Box<dyn FnOnce() + Send + 'static>) -> Result<()>
Spawn a task to execute a 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 block(&mut self, f: Box<dyn FnOnce() + Send + 'static>) -> Result<()>
[src]
impl<T: ?Sized> Spawner for Box<T> where
T: Spawner,
[src]
T: Spawner,