pub trait KernelMachine {
// Required method
fn kernel_step_round(
&mut self,
handler: &dyn EffectHandler,
n: usize,
) -> Result<StepResult, ProtocolMachineError>;
}Expand description
Runtime machine that can execute one kernel scheduler round.
Required Methods§
Sourcefn kernel_step_round(
&mut self,
handler: &dyn EffectHandler,
n: usize,
) -> Result<StepResult, ProtocolMachineError>
fn kernel_step_round( &mut self, handler: &dyn EffectHandler, n: usize, ) -> Result<StepResult, ProtocolMachineError>
Execute one scheduler round in the machine’s native state.
§Errors
Returns a ProtocolMachineError if a coroutine faults.