[−][src]Trait 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
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 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]
impl<'_, F> FusedFuture for &'_ mut F where
F: FusedFuture + Unpin + ?Sized,
[src]
F: FusedFuture + Unpin + ?Sized,
fn is_terminated(&self) -> bool
[src]
Implementors
impl<'_, St> FusedFuture for Next<'_, St> where
St: Unpin + FusedStream + ?Sized,
[src]
St: Unpin + FusedStream + ?Sized,
fn is_terminated(&self) -> bool
[src]
impl<'_, St> FusedFuture for SelectNextSome<'_, St> where
St: Unpin + FusedStream + ?Sized,
[src]
St: Unpin + FusedStream + ?Sized,
fn is_terminated(&self) -> bool
[src]
impl<'_, St> FusedFuture for TryNext<'_, St> where
St: Unpin + FusedStream + TryStream + ?Sized,
[src]
St: Unpin + FusedStream + TryStream + ?Sized,
fn is_terminated(&self) -> bool
[src]
impl<'_, T> FusedFuture for MutexLockFuture<'_, T> where
T: ?Sized,
[src]
T: ?Sized,
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>,
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<Fut> FusedFuture for MaybeDone<Fut> where
Fut: Future,
[src]
Fut: Future,
fn is_terminated(&self) -> bool
[src]
impl<Fut> FusedFuture for Flatten<Fut> where
Fut: Future,
<Fut as Future>::Output: Future,
[src]
Fut: Future,
<Fut as Future>::Output: Future,
fn is_terminated(&self) -> bool
[src]
impl<Fut> FusedFuture for Fuse<Fut> where
Fut: Future,
[src]
Fut: Future,
fn is_terminated(&self) -> bool
[src]
impl<Fut> FusedFuture for IntoFuture<Fut> where
Fut: FusedFuture + TryFuture,
[src]
Fut: FusedFuture + TryFuture,
fn is_terminated(&self) -> bool
[src]
impl<Fut> FusedFuture for NeverError<Fut> where
Fut: FusedFuture,
[src]
Fut: FusedFuture,
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,
fn is_terminated(&self) -> bool
[src]
impl<Fut> FusedFuture for UnitError<Fut> where
Fut: FusedFuture,
[src]
Fut: FusedFuture,
fn is_terminated(&self) -> bool
[src]
impl<Fut, E> FusedFuture for ErrInto<Fut, E> where
Fut: TryFuture + FusedFuture,
<Fut as TryFuture>::Error: Into<E>,
[src]
Fut: TryFuture + FusedFuture,
<Fut as TryFuture>::Error: Into<E>,
fn is_terminated(&self) -> bool
[src]
impl<Fut, F> FusedFuture for Inspect<Fut, F> where
F: FnOnce(&<Fut as Future>::Output),
Fut: FusedFuture,
[src]
F: FnOnce(&<Fut as Future>::Output),
Fut: FusedFuture,
fn is_terminated(&self) -> bool
[src]
impl<Fut, F> FusedFuture for InspectErr<Fut, F> where
F: FnOnce(&<Fut as TryFuture>::Error),
Fut: TryFuture + FusedFuture,
[src]
F: FnOnce(&<Fut as TryFuture>::Error),
Fut: TryFuture + FusedFuture,
fn is_terminated(&self) -> bool
[src]
impl<Fut, F> FusedFuture for InspectOk<Fut, F> where
F: FnOnce(&<Fut as TryFuture>::Ok),
Fut: TryFuture + FusedFuture,
[src]
F: FnOnce(&<Fut as TryFuture>::Ok),
Fut: TryFuture + FusedFuture,
fn is_terminated(&self) -> bool
[src]
impl<Fut, F> FusedFuture for UnwrapOrElse<Fut, F> where
F: FnOnce(<Fut as TryFuture>::Error) -> <Fut as TryFuture>::Ok,
Fut: TryFuture,
[src]
F: FnOnce(<Fut as TryFuture>::Error) -> <Fut as TryFuture>::Ok,
Fut: TryFuture,
fn is_terminated(&self) -> bool
[src]
impl<Fut, F, E> FusedFuture for MapErr<Fut, F> where
F: FnOnce(<Fut as TryFuture>::Error) -> E,
Fut: TryFuture,
[src]
F: FnOnce(<Fut as TryFuture>::Error) -> E,
Fut: TryFuture,
fn is_terminated(&self) -> bool
[src]
impl<Fut, F, T> FusedFuture for Map<Fut, F> where
F: FnOnce(<Fut as Future>::Output) -> T,
Fut: Future,
[src]
F: FnOnce(<Fut as Future>::Output) -> T,
Fut: Future,
fn is_terminated(&self) -> bool
[src]
impl<Fut, F, T> FusedFuture for MapOk<Fut, F> where
F: FnOnce(<Fut as TryFuture>::Ok) -> T,
Fut: TryFuture,
[src]
F: FnOnce(<Fut as TryFuture>::Ok) -> T,
Fut: TryFuture,
fn is_terminated(&self) -> bool
[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]
F: FnOnce(<Fut1 as TryFuture>::Ok) -> Fut2,
Fut1: TryFuture,
Fut2: TryFuture<Error = <Fut1 as TryFuture>::Error>,
fn is_terminated(&self) -> bool
[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]
F: FnOnce(<Fut1 as TryFuture>::Error) -> Fut2,
Fut1: TryFuture,
Fut2: TryFuture<Ok = <Fut1 as TryFuture>::Ok>,
fn is_terminated(&self) -> bool
[src]
impl<Fut1, Fut2, F> FusedFuture for Then<Fut1, Fut2, F> where
F: FnOnce(<Fut1 as Future>::Output) -> Fut2,
Fut1: Future,
Fut2: Future,
[src]
F: FnOnce(<Fut1 as Future>::Output) -> Fut2,
Fut1: Future,
Fut2: Future,
fn is_terminated(&self) -> bool
[src]
impl<St> FusedFuture for StreamFuture<St> where
St: Unpin + Stream,
[src]
St: Unpin + Stream,
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,
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,
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,
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,
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,
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,
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,
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>>,