[−][src]Struct futures_executor::LocalSpawn
pub struct LocalSpawn { /* fields omitted */ }Methods
impl LocalSpawn[src]
impl LocalSpawnpub fn spawn_local_obj(
&mut self,
future: LocalFutureObj<'static, ()>
) -> Result<(), SpawnLocalObjError>[src]
pub fn spawn_local_obj(
&mut self,
future: LocalFutureObj<'static, ()>
) -> Result<(), SpawnLocalObjError>Spawn a non-Send future onto the associated LocalPool.
Trait Implementations
impl Clone for LocalSpawn[src]
impl Clone for LocalSpawnfn clone(&self) -> LocalSpawn[src]
fn clone(&self) -> LocalSpawnReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for LocalSpawn[src]
impl Debug for LocalSpawnfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Spawn for LocalSpawn[src]
impl Spawn for LocalSpawnfn spawn_obj(
&mut self,
future: FutureObj<'static, ()>
) -> Result<(), SpawnObjError>[src]
fn spawn_obj(
&mut self,
future: FutureObj<'static, ()>
) -> Result<(), SpawnObjError>🔬 This is a nightly-only experimental API. (futures_api)
futures in libcore are unstable
Spawns a new task with the given future. The future will be polled until completion. Read more
fn status(&self) -> Result<(), SpawnErrorKind>[src]
fn status(&self) -> Result<(), SpawnErrorKind>🔬 This is a nightly-only experimental API. (futures_api)
futures in libcore are unstable
Determines whether the executor is able to spawn new tasks. Read more
Auto Trait Implementations
impl !Send for LocalSpawn
impl !Send for LocalSpawnimpl !Sync for LocalSpawn
impl !Sync for LocalSpawn