Function bicoro::failable::run_child [−][src]
pub fn run_child<'a, Input: 'a, Output: 'a, Error: 'a, ChildInput: 'a, ChildOutput: 'a, OnInput: 'a, OnOutput: 'a, Return: 'a>(
on_input: OnInput,
on_output: OnOutput,
child: ResultCoroutine<'a, ChildInput, ChildOutput, Return, Error>
) -> ResultCoroutine<'a, Input, Output, Return, Error> where
OnInput: Fn() -> ResultCoroutine<'a, Input, Output, ChildInput, Error>,
OnOutput: Fn(ChildOutput) -> ResultCoroutine<'a, Input, Output, (), Error>,
Expand description
Run a child result coroutine in the parent context
This is like the coroutine run child Differences are, the routine, its inputs, and its output routines may fail. If any do, the whole routine fails