INNER CODE UNIT · Rust
fps
lemunozm/ruscii · src/app.rs:25
pub fn fps(mut self, fps: u32) -> Config {
self.fps = fps;
self
}
}
impl Default for Config {
/// Constructs a [`Config`] with a default maximum framerate of 30.
fn default() -> Self {
Self { fps: 30 }
}
}
/// Contains the run state of the the [`App`] and the [`Keyboard`] through [`State::keyboard`] for
/// the key event interface.
#[derive(Default)]
pub struct State {
running: Arc<AtomicBool>,