Struct NextIf
#[must_use = "futures do nothing unless polled"]
pub struct NextIf<'a, St: Stream, F> { /* private fields */ }
Future for the Peekable::next_if method.
Trait Implementations
impl<'__pin, 'a, St: Stream, F> Unpin for NextIf<'a, St, F>
where
PinnedFieldsOf<__Origin<'__pin, 'a, St, F>>: Unpin,
impl<St, F> Debug for NextIf<'_, St, F>
where
St: Stream + Debug,
St::Item: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<St, F> FusedFuture for NextIf<'_, St, F>
where
St: Stream,
F: for<'a> FnOnce1<&'a St::Item, Output = bool>,
fn is_terminated(&self) -> bool
impl<St, F> Future for NextIf<'_, St, F>
where
St: Stream,
F: for<'a> FnOnce1<&'a St::Item, Output = bool>,
type Output = Option<<St as Stream>::Item>;fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>
Auto Trait Implementations
impl<'a, St, F> !UnwindSafe for NextIf<'a, St, F>
impl<'a, St, F> Freeze for NextIf<'a, St, F>
where
Option<(Pin<&'a mut Peekable<St>>, F)>: Freeze,
impl<'a, St, F> RefUnwindSafe for NextIf<'a, St, F>
where
Option<(Pin<&'a mut Peekable<St>>, F)>: RefUnwindSafe,
impl<'a, St, F> Send for NextIf<'a, St, F>
where
Option<(Pin<&'a mut Peekable<St>>, F)>: Send,
impl<'a, St, F> Sync for NextIf<'a, St, F>
where
Option<(Pin<&'a mut Peekable<St>>, F)>: Sync,
impl<'a, St, F> UnsafeUnpin for NextIf<'a, St, F>
where
Option<(Pin<&'a mut Peekable<St>>, F)>: UnsafeUnpin,
Blanket Implementations
impl<F> IntoFuture for NextIf<'a, St, F>
where
F: Future,
type Output = <F as Future>::Output;type IntoFuture = F;fn into_future(self) -> <F as IntoFuture>::IntoFuture
impl<T> Any for NextIf<'a, St, F>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for NextIf<'a, St, F>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for NextIf<'a, St, F>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for NextIf<'a, St, F>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> FutureExt for NextIf<'a, St, F>
where
T: Future + ?Sized,
impl<T, U> Into<U> for NextIf<'a, St, F>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for NextIf<'a, St, F>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for NextIf<'a, St, F>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>