pub trait VdirCoroutine {
type Yield;
type Return;
// Required method
fn resume(
&mut self,
arg: Option<VdirReply>,
) -> VdirCoroutineState<Self::Yield, Self::Return>;
}Expand description
Standard-shape Vdir 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§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".