This commit is contained in:
2025-10-12 14:53:27 +02:00
parent 2581435b10
commit 2239badc8a
16 changed files with 1116 additions and 1414 deletions

View File

@@ -41,7 +41,9 @@ struct HostRuntimeState {
#[derive(Debug)]
pub struct App {
options: AppOptions,
#[allow(dead_code)]
config: Option<AppConfig>,
#[allow(dead_code)]
active_config_path: Option<PathBuf>,
hosts: Vec<HostTarget>,
history: MetricsHistory,
@@ -136,10 +138,12 @@ impl App {
self.should_quit
}
#[allow(dead_code)]
pub fn status_text(&self) -> &str {
&self.status
}
#[allow(dead_code)]
pub fn zmq_connected(&self) -> bool {
self.zmq_connected
}
@@ -148,14 +152,17 @@ impl App {
self.options.tick_rate()
}
#[allow(dead_code)]
pub fn config(&self) -> Option<&AppConfig> {
self.config.as_ref()
}
#[allow(dead_code)]
pub fn active_config_path(&self) -> Option<&PathBuf> {
self.active_config_path.as_ref()
}
#[allow(dead_code)]
pub fn hosts(&self) -> &[HostTarget] {
&self.hosts
}
@@ -171,6 +178,7 @@ impl App {
}
}
#[allow(dead_code)]
pub fn history(&self) -> &MetricsHistory {
&self.history
}