[−][src]Trait futures::future::FusedFuture
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 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<St, Fut, F> FusedFuture for ForEachConcurrent<St, Fut, F>
[src]
fn is_terminated(&self) -> bool
[src]
impl<'a, St> FusedFuture for SelectNextSome<'a, St> where
St: FusedStream,
[src]
St: FusedStream,
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<St, Fut, F> FusedFuture for TryForEachConcurrent<St, Fut, F>
[src]
fn is_terminated(&self) -> bool
[src]
impl<F> FusedFuture for Box<F> where
F: FusedFuture + ?Sized,
[src]
F: FusedFuture + ?Sized,
fn is_terminated(&self) -> bool
[src]
impl<'_, F> FusedFuture for Pin<&'_ mut F> where
F: FusedFuture,
[src]
F: FusedFuture,
fn is_terminated(&self) -> bool
[src]
impl<'_, F> FusedFuture for &'_ mut F where
F: FusedFuture + ?Sized,
[src]
F: FusedFuture + ?Sized,
fn is_terminated(&self) -> bool
[src]
impl<F> FusedFuture for AssertUnwindSafe<F> where
F: FusedFuture,
[src]
F: FusedFuture,
fn is_terminated(&self) -> bool
[src]
impl<F> FusedFuture for Pin<Box<F>> where
F: FusedFuture + ?Sized,
[src]
F: FusedFuture + ?Sized,
fn is_terminated(&self) -> bool
[src]
Implementors
impl<'_, St> FusedFuture for Next<'_, St> where
St: FusedStream,
[src]
St: FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<'_, St> FusedFuture for TryNext<'_, St> where
St: Unpin + FusedStream,
[src]
St: Unpin + FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<'_, T> FusedFuture for MutexLockFuture<'_, T>
[src]
fn is_terminated(&self) -> bool
[src]
impl<F> FusedFuture for Lazy<F>
[src]
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,
[src]
Fut: FusedFuture,
fn is_terminated(&self) -> bool
[src]
impl<Fut> FusedFuture for Shared<Fut> where
Fut: Future,
[src]
Fut: Future,
fn is_terminated(&self) -> bool
[src]
impl<Fut, E> FusedFuture for ErrInto<Fut, E> where
Fut: FusedFuture,
[src]
Fut: FusedFuture,
fn is_terminated(&self) -> bool
[src]
impl<Fut, F> FusedFuture for Inspect<Fut, F> where
Fut: Future + FusedFuture,
[src]
Fut: Future + FusedFuture,
fn is_terminated(&self) -> bool
[src]
impl<Fut, F> FusedFuture for Map<Fut, F>
[src]
fn is_terminated(&self) -> bool
[src]
impl<Fut, F> FusedFuture for MapErr<Fut, F>
[src]
fn is_terminated(&self) -> bool
[src]
impl<Fut, F> FusedFuture for MapOk<Fut, F>
[src]
fn is_terminated(&self) -> bool
[src]
impl<Fut, F> FusedFuture for UnwrapOrElse<Fut, F>
[src]
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>
[src]
fn is_terminated(&self) -> bool
[src]
impl<St> FusedFuture for StreamFuture<St>
[src]
fn is_terminated(&self) -> bool
[src]
impl<St, C> FusedFuture for Collect<St, C> where
St: FusedStream,
[src]
St: FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St, C> FusedFuture for TryCollect<St, C> where
St: FusedStream,
[src]
St: FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St, Fut, F> FusedFuture for ForEach<St, Fut, F> where
St: FusedStream,
[src]
St: FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St, Fut, T, F> FusedFuture for Fold<St, Fut, T, F>
[src]
fn is_terminated(&self) -> bool
[src]
impl<St, Fut, T, F> FusedFuture for TryFold<St, Fut, T, F>
[src]
fn is_terminated(&self) -> bool
[src]
impl<St, Si> FusedFuture for Forward<St, Si> where
Si: Unpin + Sink,
St: Stream,
[src]
Si: Unpin + Sink,
St: Stream,