Skip to main content

Module coroutine

Module coroutine 

Source
Available on crate features http or socks5 only.
Expand description

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

Enums§

ProxyCoroutineState
State yielded by a ProxyCoroutine::resume step.
ProxyYield
I/O request emitted by a yielded coroutine step.

Traits§

ProxyCoroutine
Standard-shape proxy coroutine: owns its internal state, declares a per-step Yield, and returns Result<Output, Error> on completion.