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> Unpin for WithExecutor<Fut, E> where
E: Executor,
Fut: Unpin + Future, impl<Fut, E> Debug for WithExecutor<Fut, E> where
E: Debug + Executor,
Fut: Debug + Future, [src]
impl<Fut, E> Debug for WithExecutor<Fut, E> where
E: Debug + Executor,
Fut: Debug + Future, fn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl<Fut, E> Future for WithExecutor<Fut, E> where
E: Executor,
Fut: Future, [src]
impl<Fut, E> Future for WithExecutor<Fut, E> where
E: Executor,
Fut: Future, type Output = <Fut as Future>::Output
🔬 This is a nightly-only experimental API. (futures_api)
futures in libcore are unstable
The result of the Future.
fn poll(
self: PinMut<WithExecutor<Fut, E>>,
cx: &mut Context
) -> Poll<<Fut as Future>::Output>[src]
fn poll(
self: PinMut<WithExecutor<Fut, E>>,
cx: &mut Context
) -> Poll<<Fut as Future>::Output>🔬 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> Send for WithExecutor<Fut, E> where
E: Send,
Fut: Send, impl<Fut, E> Sync for WithExecutor<Fut, E> where
E: Sync,
Fut: Sync,
impl<Fut, E> Sync for WithExecutor<Fut, E> where
E: Sync,
Fut: Sync,