Struct futures::future::WithExecutor[][src]

#[must_use = "futures do nothing unless polled"]
pub struct WithExecutor<Fut, E> where
    E: Executor,
    Fut: Future
{ /* 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, E> Unpin for WithExecutor<Fut, E> where
    E: Executor,
    Fut: Unpin + Future
[src]

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

Formats the value using the given formatter. Read more

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