Trait libnoentiendo::cpu::Cpu
source · pub trait Cpu {
// Required methods
fn reset(&mut self);
fn attach_trace_handler(&mut self, trace: Box<dyn TraceHandler>);
fn get_cycle_count(&self) -> u64;
fn tick(&mut self) -> u8;
fn cleanup(&mut self) -> Result<(), &str>;
}
Required Methods§
sourcefn attach_trace_handler(&mut self, trace: Box<dyn TraceHandler>)
fn attach_trace_handler(&mut self, trace: Box<dyn TraceHandler>)
Attach the given handler to receive trace events from this CPU.
sourcefn get_cycle_count(&self) -> u64
fn get_cycle_count(&self) -> u64
Return the number of cycles elapsed since the system last reset.