Skip to main content

KernelMachine

Trait KernelMachine 

Source
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§

Source

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.

Implementors§