Struct NextIfEq
#[must_use = "futures do nothing unless polled"]
pub struct NextIfEq<'a, St: Stream, T: ?Sized> { /* private fields */ }
Future for the Peekable::next_if_eq method.
Trait Implementations
impl<'__pin, 'a, St: Stream, T: ?Sized> Unpin for NextIfEq<'a, St, T>
where
PinnedFieldsOf<__Origin<'__pin, 'a, St, T>>: Unpin,
impl<St, T> Debug for NextIfEq<'_, St, T>
where
St: Stream + Debug,
St::Item: Debug,
T: ?Sized,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<St, T> FusedFuture for NextIfEq<'_, St, T>
where
St: Stream,
T: ?Sized,
St::Item: PartialEq<T>,
fn is_terminated(&self) -> bool
impl<St, T> Future for NextIfEq<'_, St, T>
where
St: Stream,
T: ?Sized,
St::Item: PartialEq<T>,
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, T> !UnwindSafe for NextIfEq<'a, St, T>
impl<'a, St, T> Freeze for NextIfEq<'a, St, T>
where
NextIf<'a, St, NextIfEqFn<'a, T, <St as Stream>::Item>>: Freeze,
T: ?Sized,
impl<'a, St, T> RefUnwindSafe for NextIfEq<'a, St, T>
where
NextIf<'a, St, NextIfEqFn<'a, T, <St as Stream>::Item>>: RefUnwindSafe,
T: ?Sized,
impl<'a, St, T> Send for NextIfEq<'a, St, T>
where
NextIf<'a, St, NextIfEqFn<'a, T, <St as Stream>::Item>>: Send,
T: ?Sized,
impl<'a, St, T> Sync for NextIfEq<'a, St, T>
where
NextIf<'a, St, NextIfEqFn<'a, T, <St as Stream>::Item>>: Sync,
T: ?Sized,
impl<'a, St, T> UnsafeUnpin for NextIfEq<'a, St, T>
where
NextIf<'a, St, NextIfEqFn<'a, T, <St as Stream>::Item>>: UnsafeUnpin,
T: ?Sized,
Blanket Implementations
impl<F> IntoFuture for NextIfEq<'a, St, T>
where
F: Future,
type Output = <F as Future>::Output;type IntoFuture = F;fn into_future(self) -> <F as IntoFuture>::IntoFuture
impl<T> Any for NextIfEq<'a, St, T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for NextIfEq<'a, St, T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for NextIfEq<'a, St, T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for NextIfEq<'a, St, T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> FutureExt for NextIfEq<'a, St, T>
where
T: Future + ?Sized,
impl<T, U> Into<U> for NextIfEq<'a, St, T>
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 NextIfEq<'a, St, T>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for NextIfEq<'a, St, T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>