Struct futures_util::stream::NextIf [−][src]
#[must_use = "futures do nothing unless polled"]pub struct NextIf<'a, St: Stream, F> { /* fields omitted */ }
Future for the Peekable::next_if
method.
Trait Implementations
impl<St, F> Debug for NextIf<'_, St, F> where
St: Stream + Debug,
St::Item: Debug,
[src]
St: Stream + Debug,
St::Item: Debug,
impl<St, F> FusedFuture for NextIf<'_, St, F> where
St: Stream,
F: for<'a> FnOnce1<&'a St::Item, Output = bool>,
[src]
St: Stream,
F: for<'a> FnOnce1<&'a St::Item, Output = bool>,
fn is_terminated(&self) -> bool
[src]
impl<St, F> Future for NextIf<'_, St, F> where
St: Stream,
F: for<'a> FnOnce1<&'a St::Item, Output = bool>,
[src]
St: Stream,
F: for<'a> FnOnce1<&'a St::Item, Output = bool>,
type Output = Option<St::Item>
The type of value produced on completion.
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>
[src]
impl<'__pin, 'a, St: Stream, F> Unpin for NextIf<'a, St, F> where
__Origin<'__pin, 'a, St, F>: Unpin,
[src]
__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,
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,
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,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<F> IntoFuture for F where
F: Future,
[src]
F: Future,
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?
pub fn into_future(self) -> <F as IntoFuture>::Future
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,