[][src]Trait futures::future::FusedFuture

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

A Future or TryFuture 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

fn is_terminated(&self) -> bool

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

Loading content...

Implementations on Foreign Types

impl<Fut> FusedFuture for UnitError<Fut> where
    Fut: FusedFuture
[src]

impl<'a, St> FusedFuture for SelectNextSome<'a, St> where
    St: FusedStream
[src]

impl<St, Fut, F> FusedFuture for ForEachConcurrent<St, Fut, F>
[src]

impl<St, Fut, F> FusedFuture for TryForEachConcurrent<St, Fut, F>
[src]

impl<'_, F> FusedFuture for Pin<&'_ mut F> where
    F: FusedFuture
[src]

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

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

impl<F> FusedFuture for AssertUnwindSafe<F> where
    F: FusedFuture
[src]

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

Loading content...

Implementors

impl<'_, St> FusedFuture for Next<'_, St> where
    St: FusedStream
[src]

impl<'_, St> FusedFuture for TryNext<'_, St> where
    St: Unpin + FusedStream
[src]

impl<'_, T> FusedFuture for MutexLockFuture<'_, T>
[src]

impl<F> FusedFuture for Lazy<F>
[src]

impl<Fut> FusedFuture for MaybeDone<Fut> where
    Fut: Future
[src]

impl<Fut> FusedFuture for Flatten<Fut> where
    Fut: Future,
    <Fut as Future>::Output: Future
[src]

impl<Fut> FusedFuture for Fuse<Fut> where
    Fut: Future
[src]

impl<Fut> FusedFuture for IntoFuture<Fut> where
    Fut: FusedFuture
[src]

impl<Fut> FusedFuture for Shared<Fut> where
    Fut: Future
[src]

impl<Fut, E> FusedFuture for ErrInto<Fut, E> where
    Fut: FusedFuture
[src]

impl<Fut, F> FusedFuture for Inspect<Fut, F> where
    Fut: Future + FusedFuture
[src]

impl<Fut, F> FusedFuture for Map<Fut, F>
[src]

impl<Fut, F> FusedFuture for MapErr<Fut, F>
[src]

impl<Fut, F> FusedFuture for MapOk<Fut, F>
[src]

impl<Fut, F> FusedFuture for UnwrapOrElse<Fut, F>
[src]

impl<Fut1, Fut2, F> FusedFuture for AndThen<Fut1, Fut2, F> where
    F: FnOnce(<Fut1 as TryFuture>::Ok) -> Fut2,
    Fut1: TryFuture,
    Fut2: TryFuture<Error = <Fut1 as TryFuture>::Error>, 
[src]

impl<Fut1, Fut2, F> FusedFuture for OrElse<Fut1, Fut2, F> where
    F: FnOnce(<Fut1 as TryFuture>::Error) -> Fut2,
    Fut1: TryFuture,
    Fut2: TryFuture<Ok = <Fut1 as TryFuture>::Ok>, 
[src]

impl<Fut1, Fut2, F> FusedFuture for Then<Fut1, Fut2, F>
[src]

impl<St> FusedFuture for StreamFuture<St>
[src]

impl<St, C> FusedFuture for Collect<St, C> where
    St: FusedStream
[src]

impl<St, C> FusedFuture for TryCollect<St, C> where
    St: FusedStream
[src]

impl<St, Fut, F> FusedFuture for ForEach<St, Fut, F> where
    St: FusedStream
[src]

impl<St, Fut, T, F> FusedFuture for Fold<St, Fut, T, F>
[src]

impl<St, Fut, T, F> FusedFuture for TryFold<St, Fut, T, F>
[src]

impl<St, Si> FusedFuture for Forward<St, Si> where
    Si: Unpin + Sink,
    St: Stream
[src]

impl<T> FusedFuture for Empty<T>
[src]

impl<T> FusedFuture for Ready<T>
[src]

Loading content...