[−][src]Struct futures_util::future::WithSpawner
#[must_use = "futures do nothing unless polled"]pub struct WithSpawner<Fut, Sp> where
Fut: Future,
Sp: Spawn, { /* fields omitted */ }
Future for the with_spawner
combinator, assigning a Spawn
to be used when spawning other futures.
This is created by the Future::with_spawner
method.
Trait Implementations
impl<Fut: Debug, Sp: Debug> Debug for WithSpawner<Fut, Sp> where
Fut: Future,
Sp: Spawn,
[src]
impl<Fut: Debug, Sp: Debug> Debug for WithSpawner<Fut, Sp> where
Fut: Future,
Sp: Spawn,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<Fut: Future + Unpin, Sp: Spawn> Unpin for WithSpawner<Fut, Sp>
[src]
impl<Fut: Future + Unpin, Sp: Spawn> Unpin for WithSpawner<Fut, Sp>
impl<Fut, Sp> Future for WithSpawner<Fut, Sp> where
Fut: Future,
Sp: Spawn,
[src]
impl<Fut, Sp> Future for WithSpawner<Fut, Sp> where
Fut: Future,
Sp: Spawn,
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, Sp> Send for WithSpawner<Fut, Sp> where
Fut: Send,
Sp: Send,
impl<Fut, Sp> Send for WithSpawner<Fut, Sp> where
Fut: Send,
Sp: Send,
impl<Fut, Sp> Sync for WithSpawner<Fut, Sp> where
Fut: Sync,
Sp: Sync,
impl<Fut, Sp> Sync for WithSpawner<Fut, Sp> where
Fut: Sync,
Sp: Sync,