pub struct InteractiveConfigMenu {
pub interactive_mode: InteractiveMode,
pub config_state: ConfigurationState,
/* private fields */
}
Expand description
Interactive configuration menu system
Fields§
§interactive_mode: InteractiveMode
Current interactive mode state
config_state: ConfigurationState
Current configuration state
Implementations§
Source§impl InteractiveConfigMenu
impl InteractiveConfigMenu
Sourcepub fn get_interactive_mode(&self) -> &InteractiveMode
pub fn get_interactive_mode(&self) -> &InteractiveMode
Get current interactive mode
Sourcepub fn get_interactive_mode_mut(&mut self) -> &mut InteractiveMode
pub fn get_interactive_mode_mut(&mut self) -> &mut InteractiveMode
Get mutable interactive mode
Sourcepub fn get_run_config(&self) -> Option<RunConfiguration>
pub fn get_run_config(&self) -> Option<RunConfiguration>
Get run configuration from current state if configuration is complete and transitioning to racing
Sourcepub fn should_start_new_race(&self) -> bool
pub fn should_start_new_race(&self) -> bool
Check if configuration has changed and is ready for racing
Sourcepub fn handle_key_event(&mut self, key_event: KeyEvent) -> Result<bool>
pub fn handle_key_event(&mut self, key_event: KeyEvent) -> Result<bool>
Handle key events for the interactive menu
Trait Implementations§
Source§impl Clone for InteractiveConfigMenu
impl Clone for InteractiveConfigMenu
Source§fn clone(&self) -> InteractiveConfigMenu
fn clone(&self) -> InteractiveConfigMenu
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InteractiveConfigMenu
impl Debug for InteractiveConfigMenu
Source§impl Default for InteractiveConfigMenu
impl Default for InteractiveConfigMenu
Source§impl Widget for &InteractiveConfigMenu
impl Widget for &InteractiveConfigMenu
Auto Trait Implementations§
impl Freeze for InteractiveConfigMenu
impl RefUnwindSafe for InteractiveConfigMenu
impl Send for InteractiveConfigMenu
impl Sync for InteractiveConfigMenu
impl Unpin for InteractiveConfigMenu
impl UnwindSafe for InteractiveConfigMenu
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more