Struct futures::stream::NextIf[][src]

#[must_use = "futures do nothing unless polled"]pub struct NextIf<'a, St, F> where
    St: Stream
{ /* fields omitted */ }

Future for the Peekable::next_if method.

Trait Implementations

impl<'_, St, F> Debug for NextIf<'_, St, F> where
    St: Stream + Debug,
    <St as Stream>::Item: Debug
[src]

impl<'_, St, F> FusedFuture for NextIf<'_, St, F> where
    F: for<'a> FnOnce1<&'a <St as Stream>::Item, Output = bool>,
    St: Stream
[src]

impl<'_, St, F> Future for NextIf<'_, St, F> where
    F: for<'a> FnOnce1<&'a <St as Stream>::Item, Output = bool>,
    St: Stream
[src]

type Output = Option<<St as Stream>::Item>

The type of value produced on completion.

impl<'__pin, 'a, St, F> Unpin for NextIf<'a, St, F> where
    St: Stream,
    __Origin<'__pin, 'a, St, F>: Unpin
[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FutureExt for T where
    T: Future + ?Sized
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<F> IntoFuture for F where
    F: Future
[src]

type Output = <F as Future>::Output

🔬 This is a nightly-only experimental API. (into_future)

The output that the future will produce on completion.

type Future = F

🔬 This is a nightly-only experimental API. (into_future)

Which kind of future are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.