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

#[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, AError, BError> Stream for EitherListenStream<AStream, BStream> where
    AStream: TryStream<Ok = ListenerEvent<AInner, AError>, Error = AError>,
    BStream: TryStream<Ok = ListenerEvent<BInner, BError>, Error = BError>, 
[src]

type Item = Result<ListenerEvent<EitherFuture<AInner, BInner>, EitherError<AError, BError>>, EitherError<AError, BError>>

Values yielded by the stream.

impl<'pin, A, B> Unpin for EitherListenStream<A, B> where
    __EitherListenStream<'pin, A, B>: Unpin
[src]

Auto Trait Implementations

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

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

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

impl<A, B> UnwindSafe for EitherListenStream<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> Same<T> for T

type Output = T

Should always be Self

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

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<S, T, E> TryStream for S where
    S: Stream<Item = Result<T, E>> + ?Sized

type Ok = T

The type of successful values yielded by this future

type Error = E

The type of failures yielded by this future

impl<S> TryStreamExt for S where
    S: TryStream + ?Sized

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