[−][src]Trait futures::stream::FusedStream
A Stream
or TryStream
which tracks whether or not the underlying stream
should no longer be polled.
is_terminated
will return true
if a future should no longer be polled.
Usually, this state occurs after poll_next
(or try_poll_next
) returned
Poll::Ready(None)
. However, is_terminated
may also return true
if a
stream has become inactive and can no longer make progress and should be
ignored or dropped rather than being polled again.
Required methods
fn is_terminated(&self) -> bool
Returns true
if the stream should no longer be polled.
Implementations on Foreign Types
impl<P> FusedStream for Pin<P> where
P: DerefMut + Unpin,
<P as Deref>::Target: FusedStream,
[src]
P: DerefMut + Unpin,
<P as Deref>::Target: FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<S> FusedStream for Box<S> where
S: FusedStream + ?Sized,
[src]
S: FusedStream + ?Sized,
fn is_terminated(&self) -> bool
[src]
impl<'_, F> FusedStream for &'_ mut F where
F: FusedStream + ?Sized,
[src]
F: FusedStream + ?Sized,
fn is_terminated(&self) -> bool
[src]
Implementors
impl<Fut> FusedStream for FlattenStream<Fut> where
Fut: Future,
<Fut as Future>::Output: Stream,
<Fut as Future>::Output: FusedStream,
[src]
Fut: Future,
<Fut as Future>::Output: Stream,
<Fut as Future>::Output: FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<Fut> FusedStream for FuturesUnordered<Fut> where
Fut: Future,
[src]
Fut: Future,
fn is_terminated(&self) -> bool
[src]
impl<S> FusedStream for Fuse<S>
[src]
fn is_terminated(&self) -> bool
[src]
impl<St> FusedStream for BufferUnordered<St> where
St: Stream,
<St as Stream>::Item: Future,
[src]
St: Stream,
<St as Stream>::Item: Future,
fn is_terminated(&self) -> bool
[src]
impl<St> FusedStream for Enumerate<St> where
St: Stream + FusedStream,
[src]
St: Stream + FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St> FusedStream for Flatten<St> where
St: Stream + FusedStream,
[src]
St: Stream + FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St> FusedStream for IntoStream<St> where
St: FusedStream,
[src]
St: FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St> FusedStream for Peekable<St> where
St: Stream,
[src]
St: Stream,
fn is_terminated(&self) -> bool
[src]
impl<St> FusedStream for SelectAll<St> where
St: Unpin + Stream,
[src]
St: Unpin + Stream,
fn is_terminated(&self) -> bool
[src]
impl<St> FusedStream for Skip<St> where
St: FusedStream,
[src]
St: FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St, E> FusedStream for ErrInto<St, E> where
St: FusedStream,
[src]
St: FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St, F> FusedStream for Inspect<St, F> where
St: Stream + FusedStream,
[src]
St: Stream + FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St, F> FusedStream for Map<St, F> where
St: FusedStream,
[src]
St: FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St, F> FusedStream for MapErr<St, F> where
St: FusedStream,
[src]
St: FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St, F> FusedStream for MapOk<St, F> where
St: FusedStream,
[src]
St: FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St, Fut, F> FusedStream for Filter<St, Fut, F> where
F: FnMut(&<St as Stream>::Item) -> Fut,
Fut: Future<Output = bool>,
St: Stream + FusedStream,
[src]
F: FnMut(&<St as Stream>::Item) -> Fut,
Fut: Future<Output = bool>,
St: Stream + FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St, Fut, F> FusedStream for SkipWhile<St, Fut, F> where
St: Stream + FusedStream,
[src]
St: Stream + FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St, Fut, F> FusedStream for Then<St, Fut, F> where
St: FusedStream,
[src]
St: FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St, Fut, F, T> FusedStream for FilterMap<St, Fut, F> where
F: FnMut(<St as Stream>::Item) -> Fut,
Fut: Future<Output = Option<T>>,
St: Stream + FusedStream,
[src]
F: FnMut(<St as Stream>::Item) -> Fut,
Fut: Future<Output = Option<T>>,
St: Stream + FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St, Fut, F, T> FusedStream for TryFilterMap<St, Fut, F> where
F: FnMut(<St as TryStream>::Ok) -> Fut,
Fut: TryFuture<Ok = Option<T>, Error = <St as TryStream>::Error>,
St: TryStream + FusedStream,
[src]
F: FnMut(<St as TryStream>::Ok) -> Fut,
Fut: TryFuture<Ok = Option<T>, Error = <St as TryStream>::Error>,
St: TryStream + FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St1, St2> FusedStream for Chain<St1, St2> where
St2: FusedStream,
[src]
St2: FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St1, St2> FusedStream for Select<St1, St2>
[src]
fn is_terminated(&self) -> bool
[src]
impl<St1, St2> FusedStream for Zip<St1, St2> where
St1: Stream,
St2: Stream,
[src]
St1: Stream,
St2: Stream,