[][src]Struct futures_race::Race

pub struct Race<Left, Right> where
    Left: Future,
    Right: Future<Output = Left::Output>, 
{ /* fields omitted */ }
👎 Deprecated since 1.2.0:

please use futures-micro or futures-lite instead

Deprecated in favor of futures-micro and futures-lite.

Trait Implementations

impl<Left: Debug, Right: Debug> Debug for Race<Left, Right> where
    Left: Future,
    Right: Future<Output = Left::Output>, 
[src]

impl<Left, Right> Future for Race<Left, Right> where
    Left: Future,
    Right: Future<Output = Left::Output>, 
[src]

type Output = Left::Output

The type of value produced on completion.

impl<'__pin, Left, Right> Unpin for Race<Left, Right> where
    __Origin<'__pin, Left, Right>: Unpin,
    Left: Future,
    Right: Future<Output = Left::Output>, 
[src]

Auto Trait Implementations

impl<Left, Right> Send for Race<Left, Right> where
    Left: Send,
    Right: Send

impl<Left, Right> Sync for Race<Left, Right> where
    Left: Sync,
    Right: Sync

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<Fut> RaceExt for Fut where
    Fut: Future
[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.