Struct futures::executor::LocalExecutor [−][src]
pub struct LocalExecutor { /* fields omitted */ }
Methods
impl LocalExecutor
[src]
impl LocalExecutor
pub fn spawn_local<F>(&mut self, f: F) -> Result<(), SpawnError> where
F: Future<Item = (), Error = Never> + 'static,
[src]
pub fn spawn_local<F>(&mut self, f: F) -> Result<(), SpawnError> where
F: Future<Item = (), Error = Never> + 'static,
Spawn a non-Send
future onto the associated LocalPool
.
Trait Implementations
impl Executor for LocalExecutor
[src]
impl Executor for LocalExecutor
fn spawn(
&mut self,
f: Box<Future<Error = Never, Item = ()> + 'static + Send>
) -> Result<(), SpawnError>
[src]
fn spawn(
&mut self,
f: Box<Future<Error = Never, Item = ()> + 'static + Send>
) -> Result<(), SpawnError>
Spawn the given task, polling it until completion. Read more
fn status(&self) -> Result<(), SpawnError>
[src]
fn status(&self) -> Result<(), SpawnError>
Determine whether the executor is able to spawn new tasks. Read more
impl Clone for LocalExecutor
[src]
impl Clone for LocalExecutor
fn clone(&self) -> LocalExecutor
[src]
fn clone(&self) -> LocalExecutor
Returns 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
Auto Trait Implementations
impl !Send for LocalExecutor
impl !Send for LocalExecutor
impl !Sync for LocalExecutor
impl !Sync for LocalExecutor