pub trait M2dirCoroutine {
type Yield;
type Return;
// Required method
fn resume(
&mut self,
arg: Option<M2dirArg>,
) -> M2dirCoroutineState<Self::Yield, Self::Return>;
}Expand description
Standard-shape m2dir coroutine.
Implementors own their internal state machine and declare their per-step
Yield plus a terminal Return. The driver reacts to each Yield variant
and resumes until Complete.
Required Associated Types§
Sourcetype Yield
type Yield
Intermediate value handed back on every step. Per-coroutine: each
implementor picks exactly the variants it needs. In io-m2dir every
coroutine picks M2dirYield.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".