INNER CODE UNIT · Rust
run
lemunozm/ruscii · src/app.rs:49
pub fn run(&self) {
self.running.store(true, Ordering::SeqCst);
}
pub fn stop(&self) {
self.running.store(false, Ordering::SeqCst);
}
pub fn is_running(&self) -> bool {
self.running.load(Ordering::SeqCst)
}
/// Returns the [`Keyboard`]. For more information on how to access keyboard input, see
/// documentation for the [keyboard](crate::keyboard) module.
pub fn keyboard(&self) -> &Keyboard {
&self.keyboard
}