[][src]Enum one_of_futures::OneOf4

pub enum OneOf4<One, Two, Three, Four> {
    One(One),
    Two(Two),
    Three(Three),
    Four(Four),
}

Combines multiple different futures, streams, or sinks having the same associated types into a single type.

Variants

One(One)
Two(Two)
Three(Three)
Four(Four)

Trait Implementations

impl<One: Clone, Two: Clone, Three: Clone, Four: Clone> Clone for OneOf4<One, Two, Three, Four>[src]

impl<One: Copy, Two: Copy, Three: Copy, Four: Copy> Copy for OneOf4<One, Two, Three, Four>[src]

impl<One: Debug, Two: Debug, Three: Debug, Four: Debug> Debug for OneOf4<One, Two, Three, Four>[src]

impl<One: Eq, Two: Eq, Three: Eq, Four: Eq> Eq for OneOf4<One, Two, Three, Four>[src]

impl<One, Two, Three, Four> FusedFuture for OneOf4<One, Two, Three, Four> where
    One: FusedFuture,
    Two: FusedFuture<Output = One::Output>,
    Three: FusedFuture<Output = One::Output>,
    Four: FusedFuture<Output = One::Output>, 
[src]

impl<One, Two, Three, Four> FusedStream for OneOf4<One, Two, Three, Four> where
    One: FusedStream,
    Two: FusedStream<Item = One::Item>,
    Three: FusedStream<Item = One::Item>,
    Four: FusedStream<Item = One::Item>, 
[src]

impl<One, Two, Three, Four> Future for OneOf4<One, Two, Three, Four> where
    One: Future,
    Two: Future<Output = One::Output>,
    Three: Future<Output = One::Output>,
    Four: Future<Output = One::Output>, 
[src]

type Output = One::Output

The type of value produced on completion.

impl<One: Hash, Two: Hash, Three: Hash, Four: Hash> Hash for OneOf4<One, Two, Three, Four>[src]

impl<One: Ord, Two: Ord, Three: Ord, Four: Ord> Ord for OneOf4<One, Two, Three, Four>[src]

impl<One: PartialEq, Two: PartialEq, Three: PartialEq, Four: PartialEq> PartialEq<OneOf4<One, Two, Three, Four>> for OneOf4<One, Two, Three, Four>[src]

impl<One: PartialOrd, Two: PartialOrd, Three: PartialOrd, Four: PartialOrd> PartialOrd<OneOf4<One, Two, Three, Four>> for OneOf4<One, Two, Three, Four>[src]

impl<Item, One, Two, Three, Four> Sink<Item> for OneOf4<One, Two, Three, Four> where
    One: Sink<Item>,
    Two: Sink<Item, Error = One::Error>,
    Three: Sink<Item, Error = One::Error>,
    Four: Sink<Item, Error = One::Error>, 
[src]

type Error = One::Error

The type of value produced by the sink when an error occurs.

impl<One, Two, Three, Four> Stream for OneOf4<One, Two, Three, Four> where
    One: Stream,
    Two: Stream<Item = One::Item>,
    Three: Stream<Item = One::Item>,
    Four: Stream<Item = One::Item>, 
[src]

type Item = One::Item

Values yielded by the stream.

impl<One, Two, Three, Four> StructuralEq for OneOf4<One, Two, Three, Four>[src]

impl<One, Two, Three, Four> StructuralPartialEq for OneOf4<One, Two, Three, Four>[src]

Auto Trait Implementations

impl<One, Two, Three, Four> RefUnwindSafe for OneOf4<One, Two, Three, Four> where
    Four: RefUnwindSafe,
    One: RefUnwindSafe,
    Three: RefUnwindSafe,
    Two: RefUnwindSafe

impl<One, Two, Three, Four> Send for OneOf4<One, Two, Three, Four> where
    Four: Send,
    One: Send,
    Three: Send,
    Two: Send

impl<One, Two, Three, Four> Sync for OneOf4<One, Two, Three, Four> where
    Four: Sync,
    One: Sync,
    Three: Sync,
    Two: Sync

impl<One, Two, Three, Four> Unpin for OneOf4<One, Two, Three, Four> where
    Four: Unpin,
    One: Unpin,
    Three: Unpin,
    Two: Unpin

impl<One, Two, Three, Four> UnwindSafe for OneOf4<One, Two, Three, Four> where
    Four: UnwindSafe,
    One: UnwindSafe,
    Three: UnwindSafe,
    Two: 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<F> IntoFuture for F where
    F: Future
[src]

type Output = <F as Future>::Output

🔬 This is a nightly-only experimental API. (into_future)

The output that the future will produce on completion.

type Future = F

🔬 This is a nightly-only experimental API. (into_future)

Which kind of future are we turning this into?

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<F, T, E> TryFuture for F where
    F: Future<Output = Result<T, E>> + ?Sized
[src]

type Ok = T

The type of successful values yielded by this future

type Error = E

The type of failures yielded by this future

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
[src]

type Ok = T

The type of successful values yielded by this future

type Error = E

The type of failures yielded by this future