[−][src]Trait futures_util::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
fn is_terminated(&self) -> bool
Returns true
if the underlying future should no longer be polled.
Implementations on Foreign Types
impl<F> FusedFuture for AssertUnwindSafe<F> where
F: FusedFuture,
[src]
F: FusedFuture,
fn is_terminated(&self) -> bool
[src]
impl<'_, F> FusedFuture for &'_ mut F where
F: FusedFuture + Unpin + ?Sized,
[src]
F: FusedFuture + Unpin + ?Sized,
fn is_terminated(&self) -> bool
[src]
impl<F> FusedFuture for Box<F> where
F: FusedFuture + Unpin + ?Sized,
[src]
F: FusedFuture + Unpin + ?Sized,
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,
fn is_terminated(&self) -> bool
[src]
Implementors
impl<'_, St: ?Sized + FusedStream + Unpin> FusedFuture for Next<'_, St>
[src]
fn is_terminated(&self) -> bool
[src]
impl<'_, St: ?Sized + FusedStream + Unpin> FusedFuture for SelectNextSome<'_, St>
[src]
fn is_terminated(&self) -> bool
[src]
impl<'_, St: ?Sized + TryStream + Unpin + FusedStream> FusedFuture for TryNext<'_, St>
[src]
fn is_terminated(&self) -> bool
[src]
impl<'_, T: ?Sized> FusedFuture for MutexLockFuture<'_, T>
[src]
fn is_terminated(&self) -> bool
[src]
impl<A, B> FusedFuture for Either<A, B> where
A: FusedFuture,
B: FusedFuture<Output = A::Output>,
[src]
A: FusedFuture,
B: FusedFuture<Output = A::Output>,
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,
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,
fn is_terminated(&self) -> bool
[src]
impl<F: FusedFuture> FusedFuture for OptionFuture<F>
[src]
fn is_terminated(&self) -> bool
[src]
impl<Fut> FusedFuture for Flatten<Fut> where
Fut: Future,
Fut::Output: Future,
[src]
Fut: Future,
Fut::Output: Future,
fn is_terminated(&self) -> bool
[src]
impl<Fut> FusedFuture for Shared<Fut> where
Fut: Future,
Fut::Output: Clone,
[src]
Fut: Future,
Fut::Output: Clone,
fn is_terminated(&self) -> bool
[src]
impl<Fut, E> FusedFuture for ErrInto<Fut, E> where
Fut: TryFuture + FusedFuture,
Fut::Error: Into<E>,
[src]
Fut: TryFuture + FusedFuture,
Fut::Error: Into<E>,
fn is_terminated(&self) -> bool
[src]
impl<Fut, F> FusedFuture for Inspect<Fut, F> where
Fut: FusedFuture,
F: FnOnce(&Fut::Output),
[src]
Fut: FusedFuture,
F: FnOnce(&Fut::Output),
fn is_terminated(&self) -> bool
[src]
impl<Fut, F> FusedFuture for InspectErr<Fut, F> where
Fut: TryFuture + FusedFuture,
F: FnOnce(&Fut::Error),
[src]
Fut: TryFuture + FusedFuture,
F: FnOnce(&Fut::Error),
fn is_terminated(&self) -> bool
[src]
impl<Fut, F> FusedFuture for InspectOk<Fut, F> where
Fut: TryFuture + FusedFuture,
F: FnOnce(&Fut::Ok),
[src]
Fut: TryFuture + FusedFuture,
F: FnOnce(&Fut::Ok),
fn is_terminated(&self) -> bool
[src]
impl<Fut, F> FusedFuture for UnwrapOrElse<Fut, F> where
Fut: TryFuture,
F: FnOnce(Fut::Error) -> Fut::Ok,
[src]
Fut: TryFuture,
F: FnOnce(Fut::Error) -> Fut::Ok,
fn is_terminated(&self) -> bool
[src]
impl<Fut, F, E> FusedFuture for MapErr<Fut, F> where
Fut: TryFuture,
F: FnOnce(Fut::Error) -> E,
[src]
Fut: TryFuture,
F: FnOnce(Fut::Error) -> E,
fn is_terminated(&self) -> bool
[src]
impl<Fut, F, T> FusedFuture for Map<Fut, F> where
Fut: Future,
F: FnOnce(Fut::Output) -> T,
[src]
Fut: Future,
F: FnOnce(Fut::Output) -> T,
fn is_terminated(&self) -> bool
[src]
impl<Fut, F, T> FusedFuture for MapOk<Fut, F> where
Fut: TryFuture,
F: FnOnce(Fut::Ok) -> T,
[src]
Fut: TryFuture,
F: FnOnce(Fut::Ok) -> T,
fn is_terminated(&self) -> bool
[src]
impl<Fut1, Fut2, F> FusedFuture for Then<Fut1, Fut2, F> where
Fut1: Future,
Fut2: Future,
F: FnOnce(Fut1::Output) -> Fut2,
[src]
Fut1: Future,
Fut2: Future,
F: FnOnce(Fut1::Output) -> Fut2,
fn is_terminated(&self) -> bool
[src]
impl<Fut1, Fut2, F> FusedFuture for AndThen<Fut1, Fut2, F> where
Fut1: TryFuture,
Fut2: TryFuture<Error = Fut1::Error>,
F: FnOnce(Fut1::Ok) -> Fut2,
[src]
Fut1: TryFuture,
Fut2: TryFuture<Error = Fut1::Error>,
F: FnOnce(Fut1::Ok) -> Fut2,
fn is_terminated(&self) -> bool
[src]
impl<Fut1, Fut2, F> FusedFuture for OrElse<Fut1, Fut2, F> where
Fut1: TryFuture,
Fut2: TryFuture<Ok = Fut1::Ok>,
F: FnOnce(Fut1::Error) -> Fut2,
[src]
Fut1: TryFuture,
Fut2: TryFuture<Ok = Fut1::Ok>,
F: FnOnce(Fut1::Error) -> Fut2,
fn is_terminated(&self) -> bool
[src]
impl<Fut1: FusedFuture, Fut2: FusedFuture> FusedFuture for Join<Fut1, Fut2>
[src]
fn is_terminated(&self) -> bool
[src]
impl<Fut1: FusedFuture, Fut2: FusedFuture, Fut3: FusedFuture> FusedFuture for Join3<Fut1, Fut2, Fut3>
[src]
fn is_terminated(&self) -> bool
[src]
impl<Fut1: FusedFuture, Fut2: FusedFuture, Fut3: FusedFuture, Fut4: FusedFuture> FusedFuture for Join4<Fut1, Fut2, Fut3, Fut4>
[src]
fn is_terminated(&self) -> bool
[src]
impl<Fut1: FusedFuture, Fut2: FusedFuture, Fut3: FusedFuture, Fut4: FusedFuture, Fut5: FusedFuture> FusedFuture for Join5<Fut1, Fut2, Fut3, Fut4, Fut5>
[src]
fn is_terminated(&self) -> bool
[src]
impl<Fut: FusedFuture> FusedFuture for NeverError<Fut>
[src]
fn is_terminated(&self) -> bool
[src]
impl<Fut: FusedFuture> FusedFuture for UnitError<Fut>
[src]
fn is_terminated(&self) -> bool
[src]
impl<Fut: Future> FusedFuture for MaybeDone<Fut>
[src]
fn is_terminated(&self) -> bool
[src]
impl<Fut: Future> FusedFuture for Fuse<Fut>
[src]
fn is_terminated(&self) -> bool
[src]
impl<Fut: TryFuture + FusedFuture> FusedFuture for IntoFuture<Fut>
[src]
fn is_terminated(&self) -> bool
[src]
impl<St> FusedFuture for Concat<St> where
St: FusedStream,
St::Item: Extend<<St::Item as IntoIterator>::Item> + IntoIterator + Default,
[src]
St: FusedStream,
St::Item: Extend<<St::Item as IntoIterator>::Item> + IntoIterator + Default,
fn is_terminated(&self) -> bool
[src]
impl<St, C> FusedFuture for Collect<St, C> where
St: FusedStream,
C: Default + Extend<St::Item>,
[src]
St: FusedStream,
C: Default + Extend<St::Item>,
fn is_terminated(&self) -> bool
[src]
impl<St, C> FusedFuture for TryCollect<St, C> where
St: TryStream + FusedStream,
C: Default + Extend<St::Ok>,
[src]
St: TryStream + FusedStream,
C: Default + Extend<St::Ok>,
fn is_terminated(&self) -> bool
[src]
impl<St, Fut, F> FusedFuture for ForEach<St, Fut, F> where
St: FusedStream,
F: FnMut(St::Item) -> Fut,
Fut: Future<Output = ()>,
[src]
St: FusedStream,
F: FnMut(St::Item) -> Fut,
Fut: Future<Output = ()>,
fn is_terminated(&self) -> bool
[src]
impl<St, Fut, F> FusedFuture for ForEachConcurrent<St, Fut, F> where
St: Stream,
F: FnMut(St::Item) -> Fut,
Fut: Future<Output = ()>,
[src]
St: Stream,
F: FnMut(St::Item) -> Fut,
Fut: Future<Output = ()>,
fn is_terminated(&self) -> bool
[src]
impl<St, Fut, F> FusedFuture for TryForEachConcurrent<St, Fut, F> where
St: TryStream,
F: FnMut(St::Ok) -> Fut,
Fut: Future<Output = Result<(), St::Error>>,
[src]
St: TryStream,
F: FnMut(St::Ok) -> Fut,
Fut: Future<Output = Result<(), St::Error>>,
fn is_terminated(&self) -> bool
[src]
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>,
[src]
St: Stream,
F: FnMut(T, St::Item) -> Fut,
Fut: Future<Output = T>,
fn is_terminated(&self) -> bool
[src]
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>,
[src]
St: TryStream,
F: FnMut(T, St::Ok) -> Fut,
Fut: TryFuture<Ok = T, Error = St::Error>,
fn is_terminated(&self) -> bool
[src]
impl<St, Si, Item, E> FusedFuture for Forward<St, Si> where
Si: Sink<Item, Error = E>,
St: Stream<Item = Result<Item, E>>,
[src]
Si: Sink<Item, Error = E>,
St: Stream<Item = Result<Item, E>>,