Struct futures::stream::Then [−][src]
#[must_use = "streams do nothing unless polled"]pub struct Then<St, Fut, F> { /* fields omitted */ }
A stream combinator which chains a computation onto each item produced by a stream.
This structure is produced by the Stream::then
method.
Trait Implementations
impl<St, Fut, F> Unpin for Then<St, Fut, F> where
Fut: Unpin,
St: Unpin,
[src]
impl<St, Fut, F> Unpin for Then<St, Fut, F> where
Fut: Unpin,
St: Unpin,
impl<St, Fut, F> Debug for Then<St, Fut, F> where
F: Debug,
Fut: Debug,
St: Debug,
[src]
impl<St, Fut, F> Debug for Then<St, Fut, F> where
F: Debug,
Fut: Debug,
St: 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<St, Fut, F> Stream for Then<St, Fut, F> where
F: FnMut(<St as Stream>::Item) -> Fut,
Fut: Future,
St: Stream,
[src]
impl<St, Fut, F> Stream for Then<St, Fut, F> where
F: FnMut(<St as Stream>::Item) -> Fut,
Fut: Future,
St: Stream,
type Item = <Fut as Future>::Output
Values yielded by the stream.
fn poll_next(
self: PinMut<Then<St, Fut, F>>,
cx: &mut Context
) -> Poll<Option<<Fut as Future>::Output>>
[src]
fn poll_next(
self: PinMut<Then<St, Fut, F>>,
cx: &mut Context
) -> Poll<Option<<Fut as Future>::Output>>
Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning None
if the stream is exhausted. Read more