Struct futures_util::stream::Next [−][src]
#[must_use = "futures do nothing unless polled"]pub struct Next<'a, St: 'a> { /* fields omitted */ }
A future of the next element of a stream.
Trait Implementations
impl<'a, St: Debug + 'a> Debug for Next<'a, St>
[src]
impl<'a, St: Debug + 'a> Debug for Next<'a, St>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a, St: Stream + Unpin> Unpin for Next<'a, St>
[src]
impl<'a, St: Stream + Unpin> Unpin for Next<'a, St>
impl<'a, St: Stream + Unpin> Future for Next<'a, St>
[src]
impl<'a, St: Stream + Unpin> Future for Next<'a, St>
type Output = Option<St::Item>
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
The result of the Future
.
fn poll(self: PinMut<Self>, cx: &mut Context) -> Poll<Self::Output>
[src]
fn poll(self: PinMut<Self>, cx: &mut Context) -> Poll<Self::Output>
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more