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