[][src]Struct yukikaze::utils::fut::Pair

pub struct Pair<A: Unpin, B: Unpin> { /* fields omitted */ }

Create pair of futures that being processed together.

First goes left, then right.

Methods

impl<A: Unpin, B: Unpin> Pair<A, B>[src]

pub fn new(left: A, right: B) -> Self[src]

Creates new instance

Trait Implementations

impl<A: Unpin, B: Unpin> Future for Pair<A, B> where
    A: Future,
    B: Future
[src]

type Output = Either<(A::Output, B), (B::Output, A)>

The type of value produced on completion.

Auto Trait Implementations

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

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

impl<A, B> Unpin for Pair<A, B>

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

impl<A, B> RefUnwindSafe for Pair<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, 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> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<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<T> FutureExt for T where
    T: Future + ?Sized
[src]