INNER CODE UNIT · Rust

stop

lemunozm/ruscii · src/app.rs:53

    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
    }

    pub fn dt(&self) -> &time::Duration {
        &self.dt
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…