Skip to main content

Module coroutine

Module coroutine 

Source
Expand description

Generator-shape coroutine driver.

Mirrors core::ops::Coroutine: a Yield associated type for intermediate progress, a Return for terminal output, and a two-variant JmapCoroutineState.

Most coroutines pick the standard JmapYield (I/O-only); redirect-aware ones declare their own (e.g. JmapRedirectYield).

Enums§

JmapCoroutineState
State yielded by a JmapCoroutine::resume step.
JmapYield
Standard I/O-only Yield for coroutines that only read/write socket bytes.

Traits§

JmapCoroutine
Standard-shape JMAP coroutine.