pub struct GameOptions {
pub press_escape_to_quit: bool,
pub max_frame_rate: u16,
}Fields§
§press_escape_to_quit: boolWhether the user can press the Escape key to quit the game. Note that in a terminal game, the user can always press Ctrl+C to quit the game.
max_frame_rate: u16The maximum number of times the main game loop should run in one second. A value of 0 indicates an uncapped frame rate.
Auto Trait Implementations§
impl Freeze for GameOptions
impl RefUnwindSafe for GameOptions
impl Send for GameOptions
impl Sync for GameOptions
impl Unpin for GameOptions
impl UnwindSafe for GameOptions
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