Struct futures::future::Fuse [−][src]
#[must_use = "futures do nothing unless polled"]pub struct Fuse<Fut> where
Fut: Future, { /* fields omitted */ }
A future which "fuses" a future once it's been resolved.
Normally futures can behave unpredictable once they're used after a future
has been resolved, but Fuse is always defined to return Async::Pending
from poll after it has resolved successfully or returned an error.
This is created by the Future::fuse method.
Trait Implementations
impl<Fut> Debug for Fuse<Fut> where
Fut: Debug + Future, [src]
impl<Fut> Debug for Fuse<Fut> where
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> Future for Fuse<Fut> where
Fut: Future, [src]
impl<Fut> Future for Fuse<Fut> where
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<Fuse<Fut>>,
cx: &mut Context
) -> Poll<<Fut as Future>::Output>[src]
fn poll(
self: PinMut<Fuse<Fut>>,
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