[−][src]Trait futures_core::task::LocalSpawn
The LocalSpawn
is similar to [Spawn]
, but allows spawning futures
that don't implement Send
.
Required methods
fn spawn_local_obj(
&mut self,
future: LocalFutureObj<'static, ()>
) -> Result<(), SpawnError>
[+]
&mut self,
future: LocalFutureObj<'static, ()>
) -> Result<(), SpawnError>
Provided methods
fn status_local(&self) -> Result<(), SpawnError>
[+]
Implementations on Foreign Types
impl<Sp: ?Sized + LocalSpawn, '_> LocalSpawn for &'_ mut Sp
[src][−]
fn spawn_local_obj(
&mut self,
future: LocalFutureObj<'static, ()>
) -> Result<(), SpawnError>
[src]
&mut self,
future: LocalFutureObj<'static, ()>
) -> Result<(), SpawnError>
fn status_local(&self) -> Result<(), SpawnError>
[src]
impl<Sp: ?Sized + LocalSpawn> LocalSpawn for Box<Sp>
[src][−]
fn spawn_local_obj(
&mut self,
future: LocalFutureObj<'static, ()>
) -> Result<(), SpawnError>
[src]
&mut self,
future: LocalFutureObj<'static, ()>
) -> Result<(), SpawnError>