Struct futures::executor::LocalSpawner [−][src]
pub struct LocalSpawner { /* fields omitted */ }This is supported on crate feature
executor only.Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for LocalSpawnerimpl !Send for LocalSpawnerimpl !Sync for LocalSpawnerimpl Unpin for LocalSpawnerimpl !UnwindSafe for LocalSpawnerBlanket Implementations
Mutably borrows from an owned value. Read more
fn spawn_local<Fut>(&self, future: Fut) -> Result<(), SpawnError> where
Fut: Future<Output = ()> + 'static,
fn spawn_local<Fut>(&self, future: Fut) -> Result<(), SpawnError> where
Fut: Future<Output = ()> + 'static, Spawns a task that polls the given future with output () to
completion. Read more
fn spawn_local_with_handle<Fut>(
&self,
future: Fut
) -> Result<RemoteHandle<<Fut as Future>::Output>, SpawnError> where
Fut: Future + 'static,
fn spawn_local_with_handle<Fut>(
&self,
future: Fut
) -> Result<RemoteHandle<<Fut as Future>::Output>, SpawnError> where
Fut: Future + 'static, Spawns a task that polls the given future to completion and returns a future that resolves to the spawned future’s output. Read more
Spawns a task that polls the given future with output () to
completion. Read more
fn spawn_with_handle<Fut>(
&self,
future: Fut
) -> Result<RemoteHandle<<Fut as Future>::Output>, SpawnError> where
Fut: Future + Send + 'static,
<Fut as Future>::Output: Send,
fn spawn_with_handle<Fut>(
&self,
future: Fut
) -> Result<RemoteHandle<<Fut as Future>::Output>, SpawnError> where
Fut: Future + Send + 'static,
<Fut as Future>::Output: Send, Spawns a task that polls the given future to completion and returns a future that resolves to the spawned future’s output. Read more