Struct futures_util::future::Fuse [−][src]
#[must_use = "futures do nothing unless polled"]pub struct Fuse<A: 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<A: Debug + Future> Debug for Fuse<A>
[src]
impl<A: Debug + Future> Debug for Fuse<A>
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<A: Future> Future for Fuse<A>
[src]
impl<A: Future> Future for Fuse<A>