futures_util::future

Trait FusedFuture

Source
pub trait FusedFuture: Future {
    // Required method
    fn is_terminated(&self) -> bool;
}
Expand description

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§

Source

fn is_terminated(&self) -> bool

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

Implementations on Foreign Types§

Source§

impl<F> FusedFuture for &mut F
where F: FusedFuture + Unpin + ?Sized,

Source§

fn is_terminated(&self) -> bool

Source§

impl<F> FusedFuture for Box<F>
where F: FusedFuture + Unpin + ?Sized,

Source§

fn is_terminated(&self) -> bool

Source§

impl<P> FusedFuture for Pin<P>
where P: DerefMut + Unpin, <P as Deref>::Target: FusedFuture,

Source§

fn is_terminated(&self) -> bool

Implementors§

Source§

impl<A, B> FusedFuture for Either<A, B>
where A: FusedFuture, B: FusedFuture<Output = A::Output>,

Source§

impl<A, B> FusedFuture for Select<A, B>
where A: Future + Unpin, B: Future + Unpin,

Source§

impl<F> FusedFuture for Flatten<F>
where Flatten<F, <F as Future>::Output>: FusedFuture, F: Future,

Source§

impl<F, R> FusedFuture for Lazy<F>
where F: FnOnce(&mut Context<'_>) -> R,

Source§

impl<F: FusedFuture> FusedFuture for OptionFuture<F>

Source§

impl<Fut1, Fut2> FusedFuture for TryFlatten<Fut1, Fut2>
where TryFlatten<Fut1, Fut2>: FusedFuture,

Source§

impl<Fut1, Fut2, F> FusedFuture for AndThen<Fut1, Fut2, F>
where TryFlatten<MapOk<Fut1, F>, Fut2>: FusedFuture,

Source§

impl<Fut1, Fut2, F> FusedFuture for OrElse<Fut1, Fut2, F>
where TryFlattenErr<MapErr<Fut1, F>, Fut2>: FusedFuture,

Source§

impl<Fut1, Fut2, F> FusedFuture for Then<Fut1, Fut2, F>
where Flatten<Map<Fut1, F>, Fut2>: FusedFuture,

Source§

impl<Fut1: FusedFuture, Fut2: FusedFuture> FusedFuture for Join<Fut1, Fut2>

Source§

impl<Fut1: FusedFuture, Fut2: FusedFuture, Fut3: FusedFuture> FusedFuture for Join3<Fut1, Fut2, Fut3>

Source§

impl<Fut1: FusedFuture, Fut2: FusedFuture, Fut3: FusedFuture, Fut4: FusedFuture> FusedFuture for Join4<Fut1, Fut2, Fut3, Fut4>

Source§

impl<Fut1: FusedFuture, Fut2: FusedFuture, Fut3: FusedFuture, Fut4: FusedFuture, Fut5: FusedFuture> FusedFuture for Join5<Fut1, Fut2, Fut3, Fut4, Fut5>

Source§

impl<Fut> FusedFuture for NeverError<Fut>
where Map<Fut, OkFn<Never>>: FusedFuture,

Source§

impl<Fut> FusedFuture for UnitError<Fut>
where Map<Fut, OkFn<()>>: FusedFuture,

Source§

impl<Fut, E> FusedFuture for ErrInto<Fut, E>
where MapErr<Fut, IntoFn<E>>: FusedFuture,

Source§

impl<Fut, E> FusedFuture for OkInto<Fut, E>
where MapOk<Fut, IntoFn<E>>: FusedFuture,

Source§

impl<Fut, F> FusedFuture for Inspect<Fut, F>
where Map<Fut, InspectFn<F>>: FusedFuture,

Source§

impl<Fut, F> FusedFuture for InspectErr<Fut, F>
where Inspect<IntoFuture<Fut>, InspectErrFn<F>>: FusedFuture,

Source§

impl<Fut, F> FusedFuture for InspectOk<Fut, F>
where Inspect<IntoFuture<Fut>, InspectOkFn<F>>: FusedFuture,

Source§

impl<Fut, F> FusedFuture for Map<Fut, F>
where Map<Fut, F>: FusedFuture,

Source§

impl<Fut, F> FusedFuture for MapErr<Fut, F>
where Map<IntoFuture<Fut>, MapErrFn<F>>: FusedFuture,

Source§

impl<Fut, F> FusedFuture for MapOk<Fut, F>
where Map<IntoFuture<Fut>, MapOkFn<F>>: FusedFuture,

Source§

impl<Fut, F> FusedFuture for UnwrapOrElse<Fut, F>
where Map<IntoFuture<Fut>, UnwrapOrElseFn<F>>: FusedFuture,

Source§

impl<Fut, F, G> FusedFuture for MapOkOrElse<Fut, F, G>
where Map<IntoFuture<Fut>, ChainFn<MapOkFn<F>, ChainFn<MapErrFn<G>, MergeResultFn>>>: FusedFuture,

Source§

impl<Fut, T> FusedFuture for MapInto<Fut, T>
where Map<Fut, IntoFn<T>>: FusedFuture,

Source§

impl<Fut: TryFuture + FusedFuture> FusedFuture for IntoFuture<Fut>

Source§

impl<Fut: TryFuture> FusedFuture for TryMaybeDone<Fut>

Source§

impl<Fut: Future> FusedFuture for MaybeDone<Fut>

Source§

impl<Fut: Future> FusedFuture for Fuse<Fut>

Source§

impl<St> FusedFuture for Concat<St>
where St: FusedStream, St::Item: Extend<<St::Item as IntoIterator>::Item> + IntoIterator + Default,

Source§

impl<St, A, B, FromA, FromB> FusedFuture for Unzip<St, FromA, FromB>
where St: FusedStream<Item = (A, B)>, FromA: Default + Extend<A>, FromB: Default + Extend<B>,

Source§

impl<St, C> FusedFuture for Collect<St, C>
where St: FusedStream, C: Default + Extend<St::Item>,

Source§

impl<St, C> FusedFuture for TryCollect<St, C>
where St: TryStream + FusedStream, C: Default + Extend<St::Ok>,

Source§

impl<St, F> FusedFuture for NextIf<'_, St, F>
where St: Stream, F: for<'a> FnOnce1<&'a St::Item, Output = bool>,

Source§

impl<St, Fut, F> FusedFuture for All<St, Fut, F>
where St: Stream, F: FnMut(St::Item) -> Fut, Fut: Future<Output = bool>,

Source§

impl<St, Fut, F> FusedFuture for Any<St, Fut, F>
where St: Stream, F: FnMut(St::Item) -> Fut, Fut: Future<Output = bool>,

Source§

impl<St, Fut, F> FusedFuture for ForEach<St, Fut, F>
where St: FusedStream, F: FnMut(St::Item) -> Fut, Fut: Future<Output = ()>,

Source§

impl<St, Fut, F> FusedFuture for ForEachConcurrent<St, Fut, F>
where St: Stream, F: FnMut(St::Item) -> Fut, Fut: Future<Output = ()>,

Source§

impl<St, Fut, F> FusedFuture for TryAll<St, Fut, F>
where St: TryStream, F: FnMut(St::Ok) -> Fut, Fut: Future<Output = bool>,

Source§

impl<St, Fut, F> FusedFuture for TryAny<St, Fut, F>
where St: TryStream, F: FnMut(St::Ok) -> Fut, Fut: Future<Output = bool>,

Source§

impl<St, Fut, F> FusedFuture for TryForEachConcurrent<St, Fut, F>
where St: TryStream, F: FnMut(St::Ok) -> Fut, Fut: Future<Output = Result<(), St::Error>>,

Source§

impl<St, Fut, T, F> FusedFuture for Fold<St, Fut, T, F>
where St: Stream, F: FnMut(T, St::Item) -> Fut, Fut: Future<Output = T>,

Source§

impl<St, Fut, T, F> FusedFuture for TryFold<St, Fut, T, F>
where St: TryStream, F: FnMut(T, St::Ok) -> Fut, Fut: TryFuture<Ok = T, Error = St::Error>,

Source§

impl<St, Si> FusedFuture for Forward<St, Si>
where Forward<St, Si, St::Ok>: FusedFuture, St: TryStream,

Source§

impl<St, T> FusedFuture for NextIfEq<'_, St, T>
where St: Stream, T: ?Sized, St::Item: PartialEq<T>,

Source§

impl<St: FusedStream> FusedFuture for Count<St>

Source§

impl<St: Stream + Unpin> FusedFuture for StreamFuture<St>

Source§

impl<St: Stream> FusedFuture for Peek<'_, St>

Source§

impl<St: Stream> FusedFuture for PeekMut<'_, St>

Source§

impl<St: ?Sized + FusedStream + Unpin> FusedFuture for Next<'_, St>

Source§

impl<St: ?Sized + FusedStream + Unpin> FusedFuture for SelectNextSome<'_, St>

Source§

impl<St: ?Sized + TryStream + Unpin + FusedStream> FusedFuture for TryNext<'_, St>

Source§

impl<T> FusedFuture for Pending<T>

Source§

impl<T> FusedFuture for Ready<T>

Source§

impl<T, F: Fn() -> T> FusedFuture for AlwaysReady<T, F>

Source§

impl<T: Future> FusedFuture for PollImmediate<T>