pub enum RaceResult<'a, I, O, A, B> {
    Left {
        value: A,
        remaining: Coroutine<'a, I, O, B>,
    },
    Right {
        value: B,
        remaining: Coroutine<'a, I, O, A>,
    },
}
Expand description

A result of racing two routines

This is generated by race, and allows you to continue with the ‘losing’ coroutine, and examing the result of the ‘winning’ courtine

Variants

Left

Fields

value: A
remaining: Coroutine<'a, I, O, B>

Right

Fields

value: B
remaining: Coroutine<'a, I, O, A>

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.