[−][src]Trait heim_common::prelude::futures::future::FusedFuture
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 poll
ed again.
Required methods
pub fn is_terminated(&self) -> bool
[src]
Returns true
if the underlying future should no longer be polled.
Implementations on Foreign Types
impl<'_, T> FusedFuture for MutexLockFuture<'_, T> where
T: ?Sized,
[src]
T: ?Sized,
pub fn is_terminated(&self) -> bool
[src]
impl<'_, F> FusedFuture for &'_ mut F where
F: FusedFuture + Unpin + ?Sized,
[src]
F: FusedFuture + Unpin + ?Sized,
pub fn is_terminated(&self) -> bool
[src]
impl<F> FusedFuture for AssertUnwindSafe<F> where
F: FusedFuture,
[src]
F: FusedFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<F> FusedFuture for Box<F, Global> where
F: FusedFuture + Unpin + ?Sized,
[src]
F: FusedFuture + Unpin + ?Sized,
pub fn is_terminated(&self) -> bool
[src]
impl<P> FusedFuture for Pin<P> where
P: DerefMut + Unpin,
<P as Deref>::Target: FusedFuture,
[src]
P: DerefMut + Unpin,
<P as Deref>::Target: FusedFuture,
pub fn is_terminated(&self) -> bool
[src]
Implementors
impl<'_, St> FusedFuture for Next<'_, St> where
St: Unpin + FusedStream + ?Sized,
[src]
St: Unpin + FusedStream + ?Sized,
pub fn is_terminated(&self) -> bool
[src]
impl<'_, St> FusedFuture for Peek<'_, St> where
St: Stream,
[src]
St: Stream,
pub fn is_terminated(&self) -> bool
[src]
impl<'_, St> FusedFuture for SelectNextSome<'_, St> where
St: Unpin + FusedStream + ?Sized,
[src]
St: Unpin + FusedStream + ?Sized,
pub fn is_terminated(&self) -> bool
[src]
impl<'_, St> FusedFuture for TryNext<'_, St> where
St: Unpin + FusedStream + TryStream + ?Sized,
[src]
St: Unpin + FusedStream + TryStream + ?Sized,
pub fn is_terminated(&self) -> bool
[src]
impl<A, B> FusedFuture for Either<A, B> where
A: FusedFuture,
B: FusedFuture<Output = <A as Future>::Output>,
[src]
A: FusedFuture,
B: FusedFuture<Output = <A as Future>::Output>,
pub fn is_terminated(&self) -> bool
[src]
impl<A, B> FusedFuture for Select<A, B> where
A: Future + Unpin,
B: Future + Unpin,
[src]
A: Future + Unpin,
B: Future + Unpin,
pub fn is_terminated(&self) -> bool
[src]
impl<F> FusedFuture for Flatten<F> where
F: Future,
Flatten<F, <F as Future>::Output>: FusedFuture,
[src]
F: Future,
Flatten<F, <F as Future>::Output>: FusedFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<F> FusedFuture for OptionFuture<F> where
F: FusedFuture,
[src]
F: FusedFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<F, R> FusedFuture for Lazy<F> where
F: FnOnce(&mut Context<'_>) -> R,
[src]
F: FnOnce(&mut Context<'_>) -> R,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut1, Fut2> FusedFuture for Join<Fut1, Fut2> where
Fut1: FusedFuture,
Fut2: FusedFuture,
[src]
Fut1: FusedFuture,
Fut2: FusedFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut1, Fut2> FusedFuture for TryFlatten<Fut1, Fut2> where
TryFlatten<Fut1, Fut2>: FusedFuture,
[src]
TryFlatten<Fut1, Fut2>: FusedFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut1, Fut2, F> FusedFuture for AndThen<Fut1, Fut2, F> where
TryFlatten<MapOk<Fut1, F>, Fut2>: FusedFuture,
[src]
TryFlatten<MapOk<Fut1, F>, Fut2>: FusedFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut1, Fut2, F> FusedFuture for OrElse<Fut1, Fut2, F> where
TryFlattenErr<MapErr<Fut1, F>, Fut2>: FusedFuture,
[src]
TryFlattenErr<MapErr<Fut1, F>, Fut2>: FusedFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut1, Fut2, F> FusedFuture for Then<Fut1, Fut2, F> where
Flatten<Map<Fut1, F>, Fut2>: FusedFuture,
[src]
Flatten<Map<Fut1, F>, Fut2>: FusedFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut1, Fut2, Fut3> FusedFuture for Join3<Fut1, Fut2, Fut3> where
Fut1: FusedFuture,
Fut2: FusedFuture,
Fut3: FusedFuture,
[src]
Fut1: FusedFuture,
Fut2: FusedFuture,
Fut3: FusedFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut1, Fut2, Fut3, Fut4> FusedFuture for Join4<Fut1, Fut2, Fut3, Fut4> where
Fut1: FusedFuture,
Fut2: FusedFuture,
Fut3: FusedFuture,
Fut4: FusedFuture,
[src]
Fut1: FusedFuture,
Fut2: FusedFuture,
Fut3: FusedFuture,
Fut4: FusedFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut1, Fut2, Fut3, Fut4, Fut5> FusedFuture for Join5<Fut1, Fut2, Fut3, Fut4, Fut5> where
Fut1: FusedFuture,
Fut2: FusedFuture,
Fut3: FusedFuture,
Fut4: FusedFuture,
Fut5: FusedFuture,
[src]
Fut1: FusedFuture,
Fut2: FusedFuture,
Fut3: FusedFuture,
Fut4: FusedFuture,
Fut5: FusedFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut> FusedFuture for MaybeDone<Fut> where
Fut: Future,
[src]
Fut: Future,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut> FusedFuture for TryMaybeDone<Fut> where
Fut: TryFuture,
[src]
Fut: TryFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut> FusedFuture for Fuse<Fut> where
Fut: Future,
[src]
Fut: Future,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut> FusedFuture for IntoFuture<Fut> where
Fut: FusedFuture + TryFuture,
[src]
Fut: FusedFuture + TryFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut> FusedFuture for NeverError<Fut> where
Map<Fut, OkFn<Infallible>>: FusedFuture,
[src]
Map<Fut, OkFn<Infallible>>: FusedFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut> FusedFuture for Shared<Fut> where
Fut: Future,
<Fut as Future>::Output: Clone,
[src]
Fut: Future,
<Fut as Future>::Output: Clone,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut> FusedFuture for UnitError<Fut> where
Map<Fut, OkFn<()>>: FusedFuture,
[src]
Map<Fut, OkFn<()>>: FusedFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut, E> FusedFuture for ErrInto<Fut, E> where
MapErr<Fut, IntoFn<E>>: FusedFuture,
[src]
MapErr<Fut, IntoFn<E>>: FusedFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut, E> FusedFuture for OkInto<Fut, E> where
MapOk<Fut, IntoFn<E>>: FusedFuture,
[src]
MapOk<Fut, IntoFn<E>>: FusedFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut, F> FusedFuture for Inspect<Fut, F> where
Map<Fut, InspectFn<F>>: FusedFuture,
[src]
Map<Fut, InspectFn<F>>: FusedFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut, F> FusedFuture for InspectErr<Fut, F> where
Inspect<IntoFuture<Fut>, InspectErrFn<F>>: FusedFuture,
[src]
Inspect<IntoFuture<Fut>, InspectErrFn<F>>: FusedFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut, F> FusedFuture for InspectOk<Fut, F> where
Inspect<IntoFuture<Fut>, InspectOkFn<F>>: FusedFuture,
[src]
Inspect<IntoFuture<Fut>, InspectOkFn<F>>: FusedFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut, F> FusedFuture for Map<Fut, F> where
Map<Fut, F>: FusedFuture,
[src]
Map<Fut, F>: FusedFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut, F> FusedFuture for MapErr<Fut, F> where
Map<IntoFuture<Fut>, MapErrFn<F>>: FusedFuture,
[src]
Map<IntoFuture<Fut>, MapErrFn<F>>: FusedFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut, F> FusedFuture for MapOk<Fut, F> where
Map<IntoFuture<Fut>, MapOkFn<F>>: FusedFuture,
[src]
Map<IntoFuture<Fut>, MapOkFn<F>>: FusedFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut, F> FusedFuture for UnwrapOrElse<Fut, F> where
Map<IntoFuture<Fut>, UnwrapOrElseFn<F>>: FusedFuture,
[src]
Map<IntoFuture<Fut>, UnwrapOrElseFn<F>>: FusedFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut, F, G> FusedFuture for MapOkOrElse<Fut, F, G> where
Map<IntoFuture<Fut>, ChainFn<MapOkFn<F>, ChainFn<MapErrFn<G>, MergeResultFn>>>: FusedFuture,
[src]
Map<IntoFuture<Fut>, ChainFn<MapOkFn<F>, ChainFn<MapErrFn<G>, MergeResultFn>>>: FusedFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<Fut, T> FusedFuture for MapInto<Fut, T> where
Map<Fut, IntoFn<T>>: FusedFuture,
[src]
Map<Fut, IntoFn<T>>: FusedFuture,
pub fn is_terminated(&self) -> bool
[src]
impl<St> FusedFuture for Concat<St> where
St: FusedStream,
<St as Stream>::Item: Extend<<<St as Stream>::Item as IntoIterator>::Item>,
<St as Stream>::Item: IntoIterator,
<St as Stream>::Item: Default,
[src]
St: FusedStream,
<St as Stream>::Item: Extend<<<St as Stream>::Item as IntoIterator>::Item>,
<St as Stream>::Item: IntoIterator,
<St as Stream>::Item: Default,
pub fn is_terminated(&self) -> bool
[src]
impl<St> FusedFuture for StreamFuture<St> where
St: Unpin + Stream,
[src]
St: Unpin + Stream,
pub fn is_terminated(&self) -> bool
[src]
impl<St, C> FusedFuture for Collect<St, C> where
C: Default + Extend<<St as Stream>::Item>,
St: FusedStream,
[src]
C: Default + Extend<<St as Stream>::Item>,
St: FusedStream,
pub fn is_terminated(&self) -> bool
[src]
impl<St, C> FusedFuture for TryCollect<St, C> where
C: Default + Extend<<St as TryStream>::Ok>,
St: TryStream + FusedStream,
[src]
C: Default + Extend<<St as TryStream>::Ok>,
St: TryStream + FusedStream,
pub fn is_terminated(&self) -> bool
[src]
impl<St, Fut, F> FusedFuture for ForEach<St, Fut, F> where
F: FnMut(<St as Stream>::Item) -> Fut,
Fut: Future<Output = ()>,
St: FusedStream,
[src]
F: FnMut(<St as Stream>::Item) -> Fut,
Fut: Future<Output = ()>,
St: FusedStream,
pub fn is_terminated(&self) -> bool
[src]
impl<St, Fut, F> FusedFuture for ForEachConcurrent<St, Fut, F> where
F: FnMut(<St as Stream>::Item) -> Fut,
Fut: Future<Output = ()>,
St: Stream,
[src]
F: FnMut(<St as Stream>::Item) -> Fut,
Fut: Future<Output = ()>,
St: Stream,
pub fn is_terminated(&self) -> bool
[src]
impl<St, Fut, F> FusedFuture for TryForEachConcurrent<St, Fut, F> where
F: FnMut(<St as TryStream>::Ok) -> Fut,
Fut: Future<Output = Result<(), <St as TryStream>::Error>>,
St: TryStream,
[src]
F: FnMut(<St as TryStream>::Ok) -> Fut,
Fut: Future<Output = Result<(), <St as TryStream>::Error>>,
St: TryStream,
pub fn is_terminated(&self) -> bool
[src]
impl<St, Fut, T, F> FusedFuture for Fold<St, Fut, T, F> where
F: FnMut(T, <St as Stream>::Item) -> Fut,
Fut: Future<Output = T>,
St: Stream,
[src]
F: FnMut(T, <St as Stream>::Item) -> Fut,
Fut: Future<Output = T>,
St: Stream,
pub fn is_terminated(&self) -> bool
[src]
impl<St, Fut, T, F> FusedFuture for TryFold<St, Fut, T, F> where
F: FnMut(T, <St as TryStream>::Ok) -> Fut,
Fut: TryFuture<Ok = T, Error = <St as TryStream>::Error>,
St: TryStream,
[src]
F: FnMut(T, <St as TryStream>::Ok) -> Fut,
Fut: TryFuture<Ok = T, Error = <St as TryStream>::Error>,
St: TryStream,