[][src]Enum libp2p_core::either::EitherListenStream

#[must_use = "futures do nothing unless polled"]
pub enum EitherListenStream<A, B> {
    First(A),
    Second(B),
}

Implements Stream and dispatches all method calls to either First or Second.

Variants

First(A)
Second(B)

Trait Implementations

impl<A: Clone, B: Clone> Clone for EitherListenStream<A, B>[src]

impl<A: Copy, B: Copy> Copy for EitherListenStream<A, B>[src]

impl<A: Debug, B: Debug> Debug for EitherListenStream<A, B>[src]

impl<AStream, BStream, AInner, BInner> Stream for EitherListenStream<AStream, BStream> where
    AStream: Stream<Item = ListenerEvent<AInner>>,
    BStream: Stream<Item = ListenerEvent<BInner>>, 
[src]

type Item = ListenerEvent<EitherFuture<AInner, BInner>>

The type of item this stream will yield on success.

type Error = EitherError<AStream::Error, BStream::Error>

The type of error this stream may generate.

Auto Trait Implementations

impl<A, B> Send for EitherListenStream<A, B> where
    A: Send,
    B: Send

impl<A, B> Sync for EitherListenStream<A, B> where
    A: Sync,
    B: Sync

impl<A, B> Unpin for EitherListenStream<A, B> where
    A: Unpin,
    B: Unpin

impl<A, B> UnwindSafe for EitherListenStream<A, B> where
    A: UnwindSafe,
    B: UnwindSafe

impl<A, B> RefUnwindSafe for EitherListenStream<A, B> where
    A: RefUnwindSafe,
    B: RefUnwindSafe

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,