Struct futures_util::stream::NextIf
source · pub struct NextIf<'a, St: Stream, F> { /* private fields */ }
Expand description
Future for the Peekable::next_if
method.
Trait Implementations§
source§impl<St, F> FusedFuture for NextIf<'_, St, F>where
St: Stream,
F: for<'a> FnOnce1<&'a St::Item, Output = bool>,
impl<St, F> FusedFuture for NextIf<'_, St, F>where St: Stream, F: for<'a> FnOnce1<&'a St::Item, Output = bool>,
source§fn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true
if the underlying future should no longer be polled.source§impl<St, F> Future for NextIf<'_, St, F>where
St: Stream,
F: for<'a> FnOnce1<&'a St::Item, Output = bool>,
impl<St, F> Future for NextIf<'_, St, F>where St: Stream, F: for<'a> FnOnce1<&'a St::Item, Output = bool>,
impl<'__pin, 'a, St: Stream, F> Unpin for NextIf<'a, St, F>where __Origin<'__pin, 'a, St, F>: Unpin,
Auto Trait Implementations§
impl<'a, St, F> RefUnwindSafe for NextIf<'a, St, F>where F: RefUnwindSafe, St: RefUnwindSafe, <St as Stream>::Item: RefUnwindSafe,
impl<'a, St, F> Send for NextIf<'a, St, F>where F: Send, St: Send, <St as Stream>::Item: Send,
impl<'a, St, F> Sync for NextIf<'a, St, F>where F: Sync, St: Sync, <St as Stream>::Item: Sync,
impl<'a, St, F> !UnwindSafe for NextIf<'a, St, F>
Blanket Implementations§
source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere F: Future,
§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more