Skip to main content

Module coroutine

Module coroutine 

Source
Expand description

§Generator-shape coroutine driver

Mirrors the shape of core::ops::Coroutine: a Yield associated type for intermediate progress, a Return associated type for terminal output, and a two-variant VdirCoroutineState (Yielded / Complete).

io-vdir is filesystem-flavoured, so every coroutine in the crate picks the standard VdirYield directly: it gathers every filesystem primitive the crate emits, namely directory create / remove / read / exists, file create / read / exists / remove, path rename / copy, plus the random bytes input needed to mint new item identifiers.

VdirClient::run drives any standard-Yield coroutine to completion against the local filesystem.

Enums§

VdirCoroutineState
State yielded by a VdirCoroutine::resume step.
VdirReply
Reply fed back into VdirCoroutine::resume by the driver.
VdirYield
Standard filesystem Yield. Every io-vdir coroutine picks type Yield = VdirYield.

Traits§

VdirCoroutine
Standard-shape Vdir coroutine.