Function moras::modules::riscv::middleware::backend_api::simulator_update
source ยท pub fn simulator_update(
simulator: &mut dyn Simulator,
simulator_res: Optional,
paused: bool,
) -> Result<(), String>
Expand description
Emits a simulator update event to the frontend.
simulator
: Simulator instance to update its state.simulator_res
: Result of the simulator operation.
Returns Result
indicating the success or failure of the event
emission.
This function will emit a front_simulator_update
event to the
frontend, and the payload is a SimulatorData
containing the
current pc index, register and memory values.
filepath
: stringsuccess
: boolpaused
: boolhas_current_text
: boolcurrent_text
: u64registers
: Vec<Register>data
: Vecmessage
: string