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

#[must_use = "futures do nothing unless polled"]
pub struct WithExecutor<F, E> where
    F: 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<F: Debug, E: Debug> Debug for WithExecutor<F, E> where
    F: Future,
    E: Executor
[src]

[src]

Formats the value using the given formatter. Read more

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

A successful value

An error

[src]

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, E> Send for WithExecutor<F, E> where
    E: Send,
    F: Send

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