[−][src]Struct tokio::prelude::stream::Zip
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> Stream for Zip<S1, S2> where
S1: Stream,
S2: Stream<Error = <S1 as Stream>::Error>,
[src][+]
S1: Stream,
S2: Stream<Error = <S1 as Stream>::Error>,
impl<S1, S2> Debug for Zip<S1, S2> where
S1: Stream + Debug,
S2: Stream + Debug,
<S1 as Stream>::Item: Debug,
<S2 as Stream>::Item: Debug,
[src][+]
S1: Stream + Debug,
S2: Stream + Debug,
<S1 as Stream>::Item: Debug,
<S2 as Stream>::Item: Debug,
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,
S1: Send,
S2: Send,
<S1 as Stream>::Item: Send,
<S2 as Stream>::Item: Send,
impl<S1, S2> Unpin for Zip<S1, S2> where
S1: Unpin,
S2: Unpin,
<S1 as Stream>::Item: Unpin,
<S2 as Stream>::Item: Unpin,
S1: Unpin,
S2: Unpin,
<S1 as Stream>::Item: Unpin,
<S2 as Stream>::Item: Unpin,
impl<S1, S2> Sync for Zip<S1, S2> where
S1: Sync,
S2: Sync,
<S1 as Stream>::Item: Sync,
<S2 as Stream>::Item: Sync,
S1: Sync,
S2: Sync,
<S1 as Stream>::Item: Sync,
<S2 as Stream>::Item: Sync,
impl<S1, S2> UnwindSafe for Zip<S1, S2> where
S1: UnwindSafe,
S2: UnwindSafe,
<S1 as Stream>::Item: UnwindSafe,
<S2 as Stream>::Item: UnwindSafe,
S1: UnwindSafe,
S2: UnwindSafe,
<S1 as Stream>::Item: UnwindSafe,
<S2 as Stream>::Item: UnwindSafe,
impl<S1, S2> RefUnwindSafe for Zip<S1, S2> where
S1: RefUnwindSafe,
S2: RefUnwindSafe,
<S1 as Stream>::Item: RefUnwindSafe,
<S2 as Stream>::Item: RefUnwindSafe,
S1: RefUnwindSafe,
S2: RefUnwindSafe,
<S1 as Stream>::Item: RefUnwindSafe,
<S2 as Stream>::Item: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> From<T> for T
[src][+]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,