Struct futures::stream::Zip [−][src]
#[must_use = "streams do nothing unless polled"]pub struct Zip<St1, St2> where
St1: Stream,
St2: Stream, { /* fields omitted */ }
An adapter for merging the output of two streams.
The merged stream produces items from one or both of the underlying streams as they become available. Errors, however, are not merged: you get at most one error at a time.
Trait Implementations
impl<St1, St2> Unpin for Zip<St1, St2> where
St1: Unpin + Stream,
St2: Unpin + Stream,
[src]
impl<St1, St2> Unpin for Zip<St1, St2> where
St1: Unpin + Stream,
St2: Unpin + Stream,
impl<St1, St2> Debug for Zip<St1, St2> where
St1: Debug + Stream,
St2: Debug + Stream,
<St1 as Stream>::Item: Debug,
<St2 as Stream>::Item: Debug,
[src]
impl<St1, St2> Debug for Zip<St1, St2> where
St1: Debug + Stream,
St2: Debug + Stream,
<St1 as Stream>::Item: Debug,
<St2 as Stream>::Item: 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<St1, St2> Stream for Zip<St1, St2> where
St1: Stream,
St2: Stream,
[src]
impl<St1, St2> Stream for Zip<St1, St2> where
St1: Stream,
St2: Stream,
type Item = (<St1 as Stream>::Item, <St2 as Stream>::Item)
Values yielded by the stream.
fn poll_next(
self: PinMut<Zip<St1, St2>>,
cx: &mut Context
) -> Poll<Option<<Zip<St1, St2> as Stream>::Item>>
[src]
fn poll_next(
self: PinMut<Zip<St1, St2>>,
cx: &mut Context
) -> Poll<Option<<Zip<St1, St2> as Stream>::Item>>
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