[][src]Enum one_of_futures::OneOf8

pub enum OneOf8<One, Two, Three, Four, Five, Six, Seven, Eight> {
    One(One),
    Two(Two),
    Three(Three),
    Four(Four),
    Five(Five),
    Six(Six),
    Seven(Seven),
    Eight(Eight),
}

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)
Five(Five)
Six(Six)
Seven(Seven)
Eight(Eight)

Trait Implementations

impl<One: Clone, Two: Clone, Three: Clone, Four: Clone, Five: Clone, Six: Clone, Seven: Clone, Eight: Clone> Clone for OneOf8<One, Two, Three, Four, Five, Six, Seven, Eight>[src]

impl<One: Copy, Two: Copy, Three: Copy, Four: Copy, Five: Copy, Six: Copy, Seven: Copy, Eight: Copy> Copy for OneOf8<One, Two, Three, Four, Five, Six, Seven, Eight>[src]

impl<One: Debug, Two: Debug, Three: Debug, Four: Debug, Five: Debug, Six: Debug, Seven: Debug, Eight: Debug> Debug for OneOf8<One, Two, Three, Four, Five, Six, Seven, Eight>[src]

impl<One: Eq, Two: Eq, Three: Eq, Four: Eq, Five: Eq, Six: Eq, Seven: Eq, Eight: Eq> Eq for OneOf8<One, Two, Three, Four, Five, Six, Seven, Eight>[src]

impl<One, Two, Three, Four, Five, Six, Seven, Eight> FusedFuture for OneOf8<One, Two, Three, Four, Five, Six, Seven, Eight> where
    One: FusedFuture,
    Two: FusedFuture<Output = One::Output>,
    Three: FusedFuture<Output = One::Output>,
    Four: FusedFuture<Output = One::Output>,
    Five: FusedFuture<Output = One::Output>,
    Six: FusedFuture<Output = One::Output>,
    Seven: FusedFuture<Output = One::Output>,
    Eight: FusedFuture<Output = One::Output>, 
[src]

impl<One, Two, Three, Four, Five, Six, Seven, Eight> FusedStream for OneOf8<One, Two, Three, Four, Five, Six, Seven, Eight> where
    One: FusedStream,
    Two: FusedStream<Item = One::Item>,
    Three: FusedStream<Item = One::Item>,
    Four: FusedStream<Item = One::Item>,
    Five: FusedStream<Item = One::Item>,
    Six: FusedStream<Item = One::Item>,
    Seven: FusedStream<Item = One::Item>,
    Eight: FusedStream<Item = One::Item>, 
[src]

impl<One, Two, Three, Four, Five, Six, Seven, Eight> Future for OneOf8<One, Two, Three, Four, Five, Six, Seven, Eight> where
    One: Future,
    Two: Future<Output = One::Output>,
    Three: Future<Output = One::Output>,
    Four: Future<Output = One::Output>,
    Five: Future<Output = One::Output>,
    Six: Future<Output = One::Output>,
    Seven: Future<Output = One::Output>,
    Eight: 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, Five: Hash, Six: Hash, Seven: Hash, Eight: Hash> Hash for OneOf8<One, Two, Three, Four, Five, Six, Seven, Eight>[src]

impl<One: Ord, Two: Ord, Three: Ord, Four: Ord, Five: Ord, Six: Ord, Seven: Ord, Eight: Ord> Ord for OneOf8<One, Two, Three, Four, Five, Six, Seven, Eight>[src]

impl<One: PartialEq, Two: PartialEq, Three: PartialEq, Four: PartialEq, Five: PartialEq, Six: PartialEq, Seven: PartialEq, Eight: PartialEq> PartialEq<OneOf8<One, Two, Three, Four, Five, Six, Seven, Eight>> for OneOf8<One, Two, Three, Four, Five, Six, Seven, Eight>[src]

impl<One: PartialOrd, Two: PartialOrd, Three: PartialOrd, Four: PartialOrd, Five: PartialOrd, Six: PartialOrd, Seven: PartialOrd, Eight: PartialOrd> PartialOrd<OneOf8<One, Two, Three, Four, Five, Six, Seven, Eight>> for OneOf8<One, Two, Three, Four, Five, Six, Seven, Eight>[src]

impl<Item, One, Two, Three, Four, Five, Six, Seven, Eight> Sink<Item> for OneOf8<One, Two, Three, Four, Five, Six, Seven, Eight> where
    One: Sink<Item>,
    Two: Sink<Item, Error = One::Error>,
    Three: Sink<Item, Error = One::Error>,
    Four: Sink<Item, Error = One::Error>,
    Five: Sink<Item, Error = One::Error>,
    Six: Sink<Item, Error = One::Error>,
    Seven: Sink<Item, Error = One::Error>,
    Eight: 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, Five, Six, Seven, Eight> Stream for OneOf8<One, Two, Three, Four, Five, Six, Seven, Eight> where
    One: Stream,
    Two: Stream<Item = One::Item>,
    Three: Stream<Item = One::Item>,
    Four: Stream<Item = One::Item>,
    Five: Stream<Item = One::Item>,
    Six: Stream<Item = One::Item>,
    Seven: Stream<Item = One::Item>,
    Eight: Stream<Item = One::Item>, 
[src]

type Item = One::Item

Values yielded by the stream.

impl<One, Two, Three, Four, Five, Six, Seven, Eight> StructuralEq for OneOf8<One, Two, Three, Four, Five, Six, Seven, Eight>[src]

impl<One, Two, Three, Four, Five, Six, Seven, Eight> StructuralPartialEq for OneOf8<One, Two, Three, Four, Five, Six, Seven, Eight>[src]

Auto Trait Implementations

impl<One, Two, Three, Four, Five, Six, Seven, Eight> RefUnwindSafe for OneOf8<One, Two, Three, Four, Five, Six, Seven, Eight> where
    Eight: RefUnwindSafe,
    Five: RefUnwindSafe,
    Four: RefUnwindSafe,
    One: RefUnwindSafe,
    Seven: RefUnwindSafe,
    Six: RefUnwindSafe,
    Three: RefUnwindSafe,
    Two: RefUnwindSafe

impl<One, Two, Three, Four, Five, Six, Seven, Eight> Send for OneOf8<One, Two, Three, Four, Five, Six, Seven, Eight> where
    Eight: Send,
    Five: Send,
    Four: Send,
    One: Send,
    Seven: Send,
    Six: Send,
    Three: Send,
    Two: Send

impl<One, Two, Three, Four, Five, Six, Seven, Eight> Sync for OneOf8<One, Two, Three, Four, Five, Six, Seven, Eight> where
    Eight: Sync,
    Five: Sync,
    Four: Sync,
    One: Sync,
    Seven: Sync,
    Six: Sync,
    Three: Sync,
    Two: Sync

impl<One, Two, Three, Four, Five, Six, Seven, Eight> Unpin for OneOf8<One, Two, Three, Four, Five, Six, Seven, Eight> where
    Eight: Unpin,
    Five: Unpin,
    Four: Unpin,
    One: Unpin,
    Seven: Unpin,
    Six: Unpin,
    Three: Unpin,
    Two: Unpin

impl<One, Two, Three, Four, Five, Six, Seven, Eight> UnwindSafe for OneOf8<One, Two, Three, Four, Five, Six, Seven, Eight> where
    Eight: UnwindSafe,
    Five: UnwindSafe,
    Four: UnwindSafe,
    One: UnwindSafe,
    Seven: UnwindSafe,
    Six: 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