Struct futures_util::future::WithExecutor[][src]

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

Future for the with_executor combinator, assigning an executor to be used when spawning other futures.

This is created by the Future::with_executor method.

Trait Implementations

impl<Fut: Debug, E: Debug> Debug for WithExecutor<Fut, E> where
    Fut: Future,
    E: Executor
[src]

Formats the value using the given formatter. Read more

impl<Fut: Future + Unpin, E: Executor> Unpin for WithExecutor<Fut, E>
[src]

impl<Fut, E> Future for WithExecutor<Fut, E> where
    Fut: Future,
    E: Executor
[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, E> Send for WithExecutor<Fut, E> where
    E: Send,
    Fut: Send

impl<Fut, E> Sync for WithExecutor<Fut, E> where
    E: Sync,
    Fut: Sync