[][src]Struct futures_util::future::WithSpawner

#[must_use = "futures do nothing unless polled"]
pub struct WithSpawner<Fut, Sp> where
    Fut: Future,
    Sp: Spawn
{ /* fields omitted */ }

Future for the with_spawner combinator, assigning a Spawn to be used when spawning other futures.

This is created by the Future::with_spawner method.

Trait Implementations

impl<Fut: Debug, Sp: Debug> Debug for WithSpawner<Fut, Sp> where
    Fut: Future,
    Sp: Spawn
[src]

Formats the value using the given formatter. Read more

impl<Fut: Future + Unpin, Sp: Spawn> Unpin for WithSpawner<Fut, Sp>
[src]

impl<Fut, Sp> Future for WithSpawner<Fut, Sp> where
    Fut: Future,
    Sp: Spawn
[src]

🔬 This is a nightly-only experimental API. (futures_api)

futures in libcore are unstable

The result of the Future.

🔬 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<Fut, Sp> Send for WithSpawner<Fut, Sp> where
    Fut: Send,
    Sp: Send

impl<Fut, Sp> Sync for WithSpawner<Fut, Sp> where
    Fut: Sync,
    Sp: Sync