Enum bicoro::ChainResult

source ·
pub enum ChainResult<'a, IA, OA, OB, RA, RB> {
    OutOfInputs {
        first: RA,
        second: Coroutine<'a, OA, OB, RB>,
    },
    Finished {
        second: RB,
        first: Coroutine<'a, IA, OA, RA>,
    },
}
Expand description

Generated by chain, represents feeding inputs from one routine into another

This is useful to allow ‘communication’ between coroutines

Variants§

§

OutOfInputs

Fields

§first: RA
§second: Coroutine<'a, OA, OB, RB>
§

Finished

Fields

§second: RB
§first: Coroutine<'a, IA, OA, RA>

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.