[][src]Trait futures_core::future::FusedFuture

pub trait FusedFuture: Future {
    pub fn is_terminated(&self) -> bool;
}

A future which tracks whether or not the underlying future should no longer be polled.

is_terminated will return true if a future should no longer be polled. Usually, this state occurs after poll (or try_poll) returned Poll::Ready. However, is_terminated may also return true if a future has become inactive and can no longer make progress and should be ignored or dropped rather than being polled again.

Required methods

pub fn is_terminated(&self) -> bool[src]

Returns true if the underlying future should no longer be polled.

Loading content...

Implementations on Foreign Types

impl<P> FusedFuture for Pin<P> where
    P: DerefMut + Unpin,
    P::Target: FusedFuture
[src]

impl<F: FusedFuture + ?Sized + Unpin> FusedFuture for Box<F>[src]

Loading content...

Implementors

impl<F: FusedFuture + ?Sized + Unpin, '_> FusedFuture for &'_ mut F[src]

Loading content...