pub struct AppState {Show 14 fields
pub start_menu: StartMenu,
pub statistics_screen: StatisticsScreen,
pub filter_screen: FilterScreen,
pub save_screen: SaveScreen,
pub load_state_screen: LoadStateScreen,
pub file_browser: FileBrowser,
pub workspace: Workspace,
pub current_screen: AppScreen,
pub status_message: String,
pub input_mode: InputMode,
pub last_screen: Option<AppScreen>,
pub settings: Settings,
pub loading_task: Option<JoinHandle<Result<DataFrame>>>,
pub needs_redraw: bool,
}Expand description
Holds the entire state of the application, managing data, UI screens, and user input.
Fields§
State for the starting menu screen.
statistics_screen: StatisticsScreenState for the statistics screen.
filter_screen: FilterScreenState for the data filtering screen.
save_screen: SaveScreenState for the save screen.
load_state_screen: LoadStateScreenState for the load state screen.
file_browser: FileBrowserState for the file browser component, used for loading data.
workspace: WorkspaceThe core workspace holding all application data and analysis results.
current_screen: AppScreenThe currently active screen of the application.
status_message: StringA message displayed to the user for status updates or feedback.
input_mode: InputModeThe current mode of user input.
last_screen: Option<AppScreen>Stores the previously active screen, for navigation purposes (e.g., returning from help).
settings: SettingsApplication settings loaded from configuration.
loading_task: Option<JoinHandle<Result<DataFrame>>>Holds the handle to the asynchronous data loading task.
needs_redraw: boolWhether the UI needs to be redrawn.
Implementations§
Auto Trait Implementations§
impl !Freeze for AppState
impl !RefUnwindSafe for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl !UnwindSafe for AppState
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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