Struct futures::executor::SpawnWithHandle [−][src]
pub struct SpawnWithHandle<F> { /* fields omitted */ }
A future representing the completion of task spawning, yielding a
JoinHandle
to the spawned task.
See spawn_with_handle
for details.
Trait Implementations
impl<F> Debug for SpawnWithHandle<F> where
F: Debug,
[src]
impl<F> Debug for SpawnWithHandle<F> where
F: Debug,
fn 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<F> Future for SpawnWithHandle<F> where
F: Future + Send + 'static,
<F as Future>::Output: Send,
[src]
impl<F> Future for SpawnWithHandle<F> where
F: Future + Send + 'static,
<F as Future>::Output: Send,
type Output = JoinHandle<<F as Future>::Output>
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
The result of the Future
.
fn poll(
self: PinMut<SpawnWithHandle<F>>,
cx: &mut Context
) -> Poll<<SpawnWithHandle<F> as Future>::Output>
[src]
fn poll(
self: PinMut<SpawnWithHandle<F>>,
cx: &mut Context
) -> Poll<<SpawnWithHandle<F> as Future>::Output>
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more
Auto Trait Implementations
impl<F> Send for SpawnWithHandle<F> where
F: Send,
impl<F> Send for SpawnWithHandle<F> where
F: Send,
impl<F> Sync for SpawnWithHandle<F> where
F: Sync,
impl<F> Sync for SpawnWithHandle<F> where
F: Sync,