Trait ckb_vm::machine::Machine

source ·
pub trait Machine: CoreMachine {
    // Required methods
    fn ecall(&mut self) -> Result<(), Error>;
    fn ebreak(&mut self) -> Result<(), Error>;
}
Expand description

This is the core trait describing a full RISC-V machine. Instruction package only needs to deal with the functions in this trait.

Required Methods§

source

fn ecall(&mut self) -> Result<(), Error>

source

fn ebreak(&mut self) -> Result<(), Error>

Implementors§