Struct futures::executor::LocalExecutor [−][src]
pub struct LocalExecutor { /* fields omitted */ }Methods
impl LocalExecutor[src]
impl LocalExecutorpub fn spawn_local_obj(
&mut self,
task: LocalFutureObj<'static, ()>
) -> Result<(), SpawnLocalObjError>[src]
pub fn spawn_local_obj(
&mut self,
task: LocalFutureObj<'static, ()>
) -> Result<(), SpawnLocalObjError>Spawn a non-Send future onto the associated LocalPool.
Trait Implementations
impl Clone for LocalExecutor[src]
impl Clone for LocalExecutorfn clone(&self) -> LocalExecutor[src]
fn clone(&self) -> LocalExecutorReturns 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 LocalExecutor[src]
impl Debug for LocalExecutorfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Executor for LocalExecutor[src]
impl Executor for LocalExecutorfn spawn_obj(
&mut self,
task: FutureObj<'static, ()>
) -> Result<(), SpawnObjError>[src]
fn spawn_obj(
&mut self,
task: FutureObj<'static, ()>
) -> Result<(), SpawnObjError>🔬 This is a nightly-only experimental API. (futures_api)
futures in libcore are unstable
Spawn the given task, polling it 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
Determine whether the executor is able to spawn new tasks. Read more
Auto Trait Implementations
impl !Send for LocalExecutor
impl !Send for LocalExecutorimpl !Sync for LocalExecutor
impl !Sync for LocalExecutor