Struct futures::stream::Zip [] [src]

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

[src]

Formats the value using the given formatter. Read more

impl<S1, S2> Stream for Zip<S1, S2> where
    S1: Stream,
    S2: Stream<Error = <S1 as Stream>::Error>, 
[src]

Values yielded by the stream.

Errors yielded by the stream.

[src]

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<S1, S2> Send for Zip<S1, S2> where
    S1: Send,
    S2: Send,
    <S1 as Stream>::Item: Send,
    <S2 as Stream>::Item: Send

impl<S1, S2> Sync for Zip<S1, S2> where
    S1: Sync,
    S2: Sync,
    <S1 as Stream>::Item: Sync,
    <S2 as Stream>::Item: Sync