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
sourceimpl<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>,
sourcefn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true
if the underlying future should no longer be polled.sourceimpl<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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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?
sourcefn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more