Struct futures::executor::SpawnWithHandle
[−]
[src]
pub struct SpawnWithHandle<F>(_);
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]
F: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<F> Future for SpawnWithHandle<F> where
F: Future<Item = (), Error = Never> + Send + 'static,
<F as Future>::Item: Send,
<F as Future>::Error: Send,
[src]
F: Future<Item = (), Error = Never> + Send + 'static,
<F as Future>::Item: Send,
<F as Future>::Error: Send,
type Item = JoinHandle<<F as Future>::Item, <F as Future>::Error>
A successful value
type Error = Never
An error
fn poll(
&mut self,
cx: &mut Context
) -> Result<Async<<SpawnWithHandle<F> as Future>::Item>, Never>
[src]
&mut self,
cx: &mut Context
) -> Result<Async<<SpawnWithHandle<F> as Future>::Item>, Never>
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,
F: Send,
impl<F> Sync for SpawnWithHandle<F> where
F: Sync,
F: Sync,