Skip to main content

EcallHandler

Trait EcallHandler 

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

Required Methods§

Source

fn handle( &mut self, kind: EcallKind, regs: &mut Regs, mem: &mut dyn Memory, ) -> EcallResult

Implementors§