[][src]Struct futures_util::stream::Zip

#[must_use = "streams do nothing unless polled"]
pub struct Zip<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: Debug + Stream, St2: Debug + Stream> Debug for Zip<St1, St2> where
    St1::Item: Debug,
    St2::Item: Debug
[src]

Formats the value using the given formatter. Read more

impl<St1: Stream + Unpin, St2: Stream + Unpin> Unpin for Zip<St1, St2>
[src]

impl<St1, St2> Stream for Zip<St1, St2> where
    St1: Stream,
    St2: Stream
[src]

Values yielded by the stream.

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

Auto Trait Implementations

impl<St1, St2> Send for Zip<St1, St2> where
    St1: Send,
    St2: Send,
    <St1 as Stream>::Item: Send,
    <St2 as Stream>::Item: Send

impl<St1, St2> Sync for Zip<St1, St2> where
    St1: Sync,
    St2: Sync,
    <St1 as Stream>::Item: Sync,
    <St2 as Stream>::Item: Sync