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