[][src]Enum futures_ext::StreamEither

pub enum StreamEither<A, B> {
    A(A),
    B(B),
}

Like future::Either, but for Stream

Variants

A(A)

First branch of the type

B(B)

Second branch of the type

Trait Implementations

impl<A, B> Stream for StreamEither<A, B> where
    A: Stream,
    B: Stream<Item = A::Item, Error = A::Error>, 
[src]

type Item = A::Item

The type of item this stream will yield on success.

type Error = A::Error

The type of error this stream may generate.

Auto Trait Implementations

impl<A, B> RefUnwindSafe for StreamEither<A, B> where
    A: RefUnwindSafe,
    B: RefUnwindSafe
[src]

impl<A, B> Send for StreamEither<A, B> where
    A: Send,
    B: Send
[src]

impl<A, B> Sync for StreamEither<A, B> where
    A: Sync,
    B: Sync
[src]

impl<A, B> Unpin for StreamEither<A, B> where
    A: Unpin,
    B: Unpin
[src]

impl<A, B> UnwindSafe for StreamEither<A, B> where
    A: UnwindSafe,
    B: UnwindSafe
[src]

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<T> StreamExt for T where
    T: Stream
[src]

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

impl<T> StreamLayeredExt for T where
    T: Stream<Item = Bytes>, 
[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.