Skip to main content

Module coroutine

Module coroutine 

Source
Expand description

Generator-shape coroutine driver mirroring core::ops::Coroutine: Yield associated type for intermediate progress, Return for terminal output, and a two-variant HttpCoroutineState (Yielded / Complete).

Enums§

HttpCoroutineState
State yielded by an HttpCoroutine::resume step.
HttpYield
Standard I/O-only Yield; pick type Yield = HttpYield when the coroutine only reads or writes socket bytes.

Traits§

HttpCoroutine
Standard-shape HTTP coroutine: own internal state, declare per-step Yield, return Result<Output, Error> on completion.