Trait genawaiter::Generator
source · pub trait Generator {
type Yield;
type Return;
// Required method
fn resume(self: Pin<&mut Self>) -> GeneratorState<Self::Yield, Self::Return>;
}
Expand description
A trait implemented for generator types.
This is modeled after the stdlib’s nightly-only [std::ops::Generator
].