[][src]Enum one_of_futures::OneOf3

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

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

Variants

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

Trait Implementations

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

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

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

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

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

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

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

type Output = One::Output

The type of value produced on completion.

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

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

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

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

impl<Item, One, Two, Three> Sink<Item> for OneOf3<One, Two, Three> where
    One: Sink<Item>,
    Two: Sink<Item, Error = One::Error>,
    Three: 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> Stream for OneOf3<One, Two, Three> where
    One: Stream,
    Two: Stream<Item = One::Item>,
    Three: Stream<Item = One::Item>, 
[src]

type Item = One::Item

Values yielded by the stream.

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

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

Auto Trait Implementations

impl<One, Two, Three> RefUnwindSafe for OneOf3<One, Two, Three> where
    One: RefUnwindSafe,
    Three: RefUnwindSafe,
    Two: RefUnwindSafe

impl<One, Two, Three> Send for OneOf3<One, Two, Three> where
    One: Send,
    Three: Send,
    Two: Send

impl<One, Two, Three> Sync for OneOf3<One, Two, Three> where
    One: Sync,
    Three: Sync,
    Two: Sync

impl<One, Two, Three> Unpin for OneOf3<One, Two, Three> where
    One: Unpin,
    Three: Unpin,
    Two: Unpin

impl<One, Two, Three> UnwindSafe for OneOf3<One, Two, Three> where
    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