pub struct Status {
pub model: Option<&'static str>,
pub rom_name: String,
pub running: bool,
pub halted: Option<String>,
pub speed: Speed,
pub loop_state: LoopState,
pub busy: bool,
pub starting: bool,
}Expand description
The status event: sent whenever one of its fields changed.
Fields§
§model: Option<&'static str>The booted model’s name.
rom_name: StringThe ROM file’s name.
running: boolThe machine runs (booted, not paused, not halted).
halted: Option<String>Why the CPU stopped, or None.
speed: SpeedThe speed setting.
loop_state: LoopStateWhat the loop does.
busy: boolA long send holds the frames.
starting: boolA cold boot’s “Try To Recover Memory?” (and the 49G’s “Memory Clear”) is still being answered: the keyboard is not the user’s yet, and a send waits for the answer.
Trait Implementations§
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Forget for Status
impl Freeze for Status
impl Move for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
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