pub trait EcallHandler {
// Required method
fn handle(
&mut self,
kind: EcallKind,
regs: &mut Regs,
mem: &mut dyn Memory,
) -> EcallResult;
}Expand description
Trait the integration layer implements to interpret ecalls.
PC has been advanced past the instruction by the engine; the handler operates on the post-advance register/memory state.