#[repr(u32)]pub enum StepResult {
Ok = 0,
Wfi = 1,
Fault = 3,
Restart = 30_583,
Poweroff = 21_845,
}Expand description
Outcome of a single execution batch (crate::emulator::Emulator::step).
The run loop inspects this value after every step call to decide what to
do next (sleep, restart, stop, etc.).
Variants§
Ok = 0
Normal execution — at least one instruction retired.
Wfi = 1
CPU executed a WFI and is sleeping until the next interrupt.
Fault = 3
Unrecoverable fault (only raised when fail_on_all_faults is set).
Restart = 30_583
Kernel requested a system restart via SYSCON (0x7777).
Poweroff = 21_845
Kernel requested a clean shutdown via SYSCON (0x5555).
Trait Implementations§
Source§impl Clone for StepResult
impl Clone for StepResult
Source§fn clone(&self) -> StepResult
fn clone(&self) -> StepResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StepResult
impl Debug for StepResult
Source§impl PartialEq for StepResult
impl PartialEq for StepResult
impl Copy for StepResult
impl Eq for StepResult
impl StructuralPartialEq for StepResult
Auto Trait Implementations§
impl Freeze for StepResult
impl RefUnwindSafe for StepResult
impl Send for StepResult
impl Sync for StepResult
impl Unpin for StepResult
impl UnsafeUnpin for StepResult
impl UnwindSafe for StepResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more