Struct async_std::stream::Zip[][src]

pub struct Zip<A: Stream, B> { /* fields omitted */ }

A stream that takes items from two other streams simultaneously.

This struct is created by the zip method on Stream. See its documentation for more.

Trait Implementations

impl<A: Stream + Debug, B: Debug> Debug for Zip<A, B>[src]

impl<A: Stream, B: Stream> Stream for Zip<A, B>[src]

type Item = (A::Item, B::Item)

Values yielded by the stream.

impl<'__pin, A: Stream, B> Unpin for Zip<A, B> where
    __Origin<'__pin, A, B>: Unpin
[src]

Auto Trait Implementations

impl<A, B> RefUnwindSafe for Zip<A, B> where
    A: RefUnwindSafe,
    B: RefUnwindSafe,
    <A as Stream>::Item: RefUnwindSafe

impl<A, B> Send for Zip<A, B> where
    A: Send,
    B: Send,
    <A as Stream>::Item: Send

impl<A, B> Sync for Zip<A, B> where
    A: Sync,
    B: Sync,
    <A as Stream>::Item: Sync

impl<A, B> UnwindSafe for Zip<A, B> where
    A: UnwindSafe,
    B: UnwindSafe,
    <A as Stream>::Item: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<S> StreamExt for S where
    S: Stream + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.