Trait futures_util::stream::FusedStream [−][src]
A stream 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
pub fn is_terminated(&self) -> bool
[src]
Returns true
if the stream should no longer be polled.
Implementations on Foreign Types
impl<'_, F> FusedStream for &'_ mut F where
F: FusedStream + Unpin + ?Sized,
[src]
F: FusedStream + Unpin + ?Sized,
pub fn is_terminated(&self) -> bool
[src]
impl<S> FusedStream for Box<S, Global> where
S: FusedStream + Unpin + ?Sized,
[src]
S: FusedStream + Unpin + ?Sized,
pub fn is_terminated(&self) -> bool
[src]
impl<P> FusedStream for Pin<P> where
P: DerefMut + Unpin,
<P as Deref>::Target: FusedStream,
[src]
P: DerefMut + Unpin,
<P as Deref>::Target: FusedStream,
pub fn is_terminated(&self) -> bool
[src]
impl<T> FusedStream for Receiver<T>
[src]
pub fn is_terminated(&self) -> bool
[src]
impl<T> FusedStream for UnboundedReceiver<T>
[src]
pub fn is_terminated(&self) -> bool
[src]
Implementors
impl<A, B> FusedStream for Either<A, B> where
A: FusedStream,
B: FusedStream<Item = A::Item>,
[src]
A: FusedStream,
B: FusedStream<Item = A::Item>,
fn is_terminated(&self) -> bool
[src]
impl<A, F: FnMut() -> A> FusedStream for RepeatWith<F>
[src]
fn is_terminated(&self) -> bool
[src]
impl<B, St, S, Fut, F> FusedStream for Scan<St, S, Fut, F> where
St: FusedStream,
F: FnMut(&mut S, St::Item) -> Fut,
Fut: Future<Output = Option<B>>,
[src]
St: FusedStream,
F: FnMut(&mut S, St::Item) -> Fut,
Fut: Future<Output = Option<B>>,
fn is_terminated(&self) -> bool
[src]
impl<F> FusedStream for FlattenStream<F> where
Flatten<F, <F as Future>::Output>: FusedStream,
F: Future,
[src]
Flatten<F, <F as Future>::Output>: FusedStream,
F: Future,
fn is_terminated(&self) -> bool
[src]
impl<F> FusedStream for futures_util::future::IntoStream<F> where
Once<F>: FusedStream,
[src]
Once<F>: FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<Fut> FusedStream for TryFlattenStream<Fut> where
TryFlatten<Fut, Fut::Ok>: FusedStream,
Fut: TryFuture,
[src]
TryFlatten<Fut, Fut::Ok>: FusedStream,
Fut: TryFuture,
fn is_terminated(&self) -> bool
[src]
impl<Fut, Si> FusedStream for FlattenSink<Fut, Si> where
TryFlatten<Fut, Si>: FusedStream,
[src]
TryFlatten<Fut, Si>: FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<Fut: Future> FusedStream for FuturesOrdered<Fut>
[src]
fn is_terminated(&self) -> bool
[src]
impl<Fut: Future> FusedStream for FuturesUnordered<Fut>
[src]
fn is_terminated(&self) -> bool
[src]
impl<Fut: Future> FusedStream for Once<Fut>
[src]
fn is_terminated(&self) -> bool
[src]
impl<S, Item> FusedStream for Buffer<S, Item> where
S: Sink<Item> + FusedStream,
[src]
S: Sink<Item> + FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<S, Item, E> FusedStream for SinkErrInto<S, Item, E> where
S: Sink<Item> + FusedStream,
S::Error: Into<E>,
[src]
S: Sink<Item> + FusedStream,
S::Error: Into<E>,
fn is_terminated(&self) -> bool
[src]
impl<S, Item, U, St, F> FusedStream for WithFlatMap<S, Item, U, St, F> where
S: FusedStream + Sink<Item>,
F: FnMut(U) -> St,
St: Stream<Item = Result<Item, S::Error>>,
[src]
S: FusedStream + Sink<Item>,
F: FnMut(U) -> St,
St: Stream<Item = Result<Item, S::Error>>,
fn is_terminated(&self) -> bool
[src]
impl<S: FusedStream, F> FusedStream for SinkMapErr<S, F>
[src]
fn is_terminated(&self) -> bool
[src]
impl<S: Stream> FusedStream for Fuse<S>
[src]
fn is_terminated(&self) -> bool
[src]
impl<St1, St2> FusedStream for Chain<St1, St2> where
St1: Stream,
St2: FusedStream<Item = St1::Item>,
[src]
St1: Stream,
St2: FusedStream<Item = St1::Item>,
fn is_terminated(&self) -> bool
[src]
impl<St1, St2> FusedStream for Select<St1, St2> where
St1: Stream,
St2: Stream<Item = St1::Item>,
[src]
St1: Stream,
St2: Stream<Item = St1::Item>,
fn is_terminated(&self) -> bool
[src]
impl<St1, St2> FusedStream for Zip<St1, St2> where
St1: Stream,
St2: Stream,
[src]
St1: Stream,
St2: Stream,
fn is_terminated(&self) -> bool
[src]
impl<St> FusedStream for BufferUnordered<St> where
St: Stream,
St::Item: Future,
[src]
St: Stream,
St::Item: Future,
fn is_terminated(&self) -> bool
[src]
impl<St> FusedStream for Cycle<St> where
St: Clone + Stream,
[src]
St: Clone + Stream,
fn is_terminated(&self) -> bool
[src]
impl<St> FusedStream for Flatten<St> where
Flatten<St, St::Item>: FusedStream,
St: Stream,
[src]
Flatten<St, St::Item>: FusedStream,
St: Stream,
fn is_terminated(&self) -> bool
[src]
impl<St> FusedStream for Take<St> where
St: FusedStream,
[src]
St: FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St> FusedStream for TryFlatten<St> where
St: TryStream + FusedStream,
St::Ok: TryStream,
<St::Ok as TryStream>::Error: From<St::Error>,
[src]
St: TryStream + FusedStream,
St::Ok: TryStream,
<St::Ok as TryStream>::Error: From<St::Error>,
fn is_terminated(&self) -> bool
[src]
impl<St, E> FusedStream for ErrInto<St, E> where
MapErr<St, IntoFn<E>>: FusedStream,
[src]
MapErr<St, IntoFn<E>>: FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St, F> FusedStream for Inspect<St, F> where
Map<St, InspectFn<F>>: FusedStream,
[src]
Map<St, InspectFn<F>>: FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St, F> FusedStream for InspectErr<St, F> where
Inspect<IntoStream<St>, InspectErrFn<F>>: FusedStream,
[src]
Inspect<IntoStream<St>, InspectErrFn<F>>: FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St, F> FusedStream for InspectOk<St, F> where
Inspect<IntoStream<St>, InspectOkFn<F>>: FusedStream,
[src]
Inspect<IntoStream<St>, InspectOkFn<F>>: FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St, F> FusedStream for Map<St, F> where
St: FusedStream,
F: FnMut1<St::Item>,
[src]
St: FusedStream,
F: FnMut1<St::Item>,
fn is_terminated(&self) -> bool
[src]
impl<St, F> FusedStream for MapErr<St, F> where
Map<IntoStream<St>, MapErrFn<F>>: FusedStream,
[src]
Map<IntoStream<St>, MapErrFn<F>>: FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St, F> FusedStream for MapOk<St, F> where
Map<IntoStream<St>, MapOkFn<F>>: FusedStream,
[src]
Map<IntoStream<St>, MapOkFn<F>>: FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St, Fut> FusedStream for TakeUntil<St, Fut> where
St: Stream,
Fut: Future,
[src]
St: Stream,
Fut: Future,
fn is_terminated(&self) -> bool
[src]
impl<St, Fut, F> FusedStream for AndThen<St, Fut, F> where
St: TryStream + FusedStream,
F: FnMut(St::Ok) -> Fut,
Fut: TryFuture<Error = St::Error>,
[src]
St: TryStream + FusedStream,
F: FnMut(St::Ok) -> Fut,
Fut: TryFuture<Error = St::Error>,
fn is_terminated(&self) -> bool
[src]
impl<St, Fut, F> FusedStream for Filter<St, Fut, F> where
St: Stream + FusedStream,
F: FnMut(&St::Item) -> Fut,
Fut: Future<Output = bool>,
[src]
St: Stream + FusedStream,
F: FnMut(&St::Item) -> Fut,
Fut: Future<Output = bool>,
fn is_terminated(&self) -> bool
[src]
impl<St, Fut, F> FusedStream for OrElse<St, Fut, F> where
St: TryStream + FusedStream,
F: FnMut(St::Error) -> Fut,
Fut: TryFuture<Ok = St::Ok>,
[src]
St: TryStream + FusedStream,
F: FnMut(St::Error) -> Fut,
Fut: TryFuture<Ok = St::Ok>,
fn is_terminated(&self) -> bool
[src]
impl<St, Fut, F> FusedStream for SkipWhile<St, Fut, F> where
St: FusedStream,
F: FnMut(&St::Item) -> Fut,
Fut: Future<Output = bool>,
[src]
St: FusedStream,
F: FnMut(&St::Item) -> Fut,
Fut: Future<Output = bool>,
fn is_terminated(&self) -> bool
[src]
impl<St, Fut, F> FusedStream for TakeWhile<St, Fut, F> where
St: FusedStream,
F: FnMut(&St::Item) -> Fut,
Fut: Future<Output = bool>,
[src]
St: FusedStream,
F: FnMut(&St::Item) -> Fut,
Fut: Future<Output = bool>,
fn is_terminated(&self) -> bool
[src]
impl<St, Fut, F> FusedStream for Then<St, Fut, F> where
St: FusedStream,
F: FnMut(St::Item) -> Fut,
Fut: Future,
[src]
St: FusedStream,
F: FnMut(St::Item) -> Fut,
Fut: Future,
fn is_terminated(&self) -> bool
[src]
impl<St, Fut, F> FusedStream for TryFilter<St, Fut, F> where
St: TryStream + FusedStream,
F: FnMut(&St::Ok) -> Fut,
Fut: Future<Output = bool>,
[src]
St: TryStream + FusedStream,
F: FnMut(&St::Ok) -> Fut,
Fut: Future<Output = bool>,
fn is_terminated(&self) -> bool
[src]
impl<St, Fut, F> FusedStream for TrySkipWhile<St, Fut, F> where
St: TryStream + FusedStream,
F: FnMut(&St::Ok) -> Fut,
Fut: TryFuture<Ok = bool, Error = St::Error>,
[src]
St: TryStream + FusedStream,
F: FnMut(&St::Ok) -> Fut,
Fut: TryFuture<Ok = bool, Error = St::Error>,
fn is_terminated(&self) -> bool
[src]
impl<St, Fut, F> FusedStream for TryTakeWhile<St, Fut, F> where
St: TryStream + FusedStream,
F: FnMut(&St::Ok) -> Fut,
Fut: TryFuture<Ok = bool, Error = St::Error>,
[src]
St: TryStream + FusedStream,
F: FnMut(&St::Ok) -> Fut,
Fut: TryFuture<Ok = bool, Error = St::Error>,
fn is_terminated(&self) -> bool
[src]
impl<St, Fut, F, T> FusedStream for FilterMap<St, Fut, F> where
St: Stream + FusedStream,
F: FnMut1<St::Item, Output = Fut>,
Fut: Future<Output = Option<T>>,
[src]
St: Stream + FusedStream,
F: FnMut1<St::Item, Output = Fut>,
Fut: Future<Output = Option<T>>,
fn is_terminated(&self) -> bool
[src]
impl<St, Fut, F, T> FusedStream for TryFilterMap<St, Fut, F> where
St: TryStream + FusedStream,
Fut: TryFuture<Ok = Option<T>, Error = St::Error>,
F: FnMut(St::Ok) -> Fut,
[src]
St: TryStream + FusedStream,
Fut: TryFuture<Ok = Option<T>, Error = St::Error>,
F: FnMut(St::Ok) -> Fut,
fn is_terminated(&self) -> bool
[src]
impl<St, U, F> FusedStream for FlatMap<St, U, F> where
Flatten<Map<St, F>, U>: FusedStream,
[src]
Flatten<Map<St, F>, U>: FusedStream,
fn is_terminated(&self) -> bool
[src]
impl<St: FusedStream + UnwindSafe> FusedStream for CatchUnwind<St>
[src]
fn is_terminated(&self) -> bool
[src]
impl<St: FusedStream> FusedStream for Chunks<St>
[src]
fn is_terminated(&self) -> bool
[src]
impl<St: FusedStream> FusedStream for ReadyChunks<St>
[src]
fn is_terminated(&self) -> bool
[src]
impl<St: FusedStream> FusedStream for Skip<St>
[src]
fn is_terminated(&self) -> bool
[src]
impl<St: Stream + FusedStream> FusedStream for Enumerate<St>
[src]
fn is_terminated(&self) -> bool
[src]
impl<St: Stream + Unpin> FusedStream for SelectAll<St>
[src]
fn is_terminated(&self) -> bool
[src]
impl<St: Stream> FusedStream for Peekable<St>
[src]
fn is_terminated(&self) -> bool
[src]
impl<St: TryStream + FusedStream> FusedStream for futures_util::stream::IntoStream<St>
[src]
fn is_terminated(&self) -> bool
[src]
impl<T> FusedStream for Empty<T>
[src]
fn is_terminated(&self) -> bool
[src]
impl<T> FusedStream for Pending<T>
[src]
fn is_terminated(&self) -> bool
[src]
impl<T> FusedStream for Repeat<T> where
T: Clone,
[src]
T: Clone,
fn is_terminated(&self) -> bool
[src]
impl<T, F, Fut, Item> FusedStream for Unfold<T, F, Fut> where
F: FnMut(T) -> Fut,
Fut: Future<Output = Option<(Item, T)>>,
[src]
F: FnMut(T) -> Fut,
Fut: Future<Output = Option<(Item, T)>>,