Struct futures_util::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: Debug, Fut: Debug, F: Debug> Debug for Then<St, Fut, F>
[src]
impl<St: Debug, Fut: Debug, F: Debug> Debug for Then<St, Fut, F>
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<St: Unpin, Fut: Unpin, F> Unpin for Then<St, Fut, F>
[src]
impl<St: Unpin, Fut: Unpin, F> Unpin for Then<St, Fut, F>
impl<St, Fut, F> Stream for Then<St, Fut, F> where
St: Stream,
F: FnMut(St::Item) -> Fut,
Fut: Future,
[src]
impl<St, Fut, F> Stream for Then<St, Fut, F> where
St: Stream,
F: FnMut(St::Item) -> Fut,
Fut: Future,
type Item = Fut::Output
Values yielded by the stream.
fn poll_next(self: PinMut<Self>, cx: &mut Context) -> Poll<Option<Fut::Output>>
[src]
fn poll_next(self: PinMut<Self>, cx: &mut Context) -> Poll<Option<Fut::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