1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// Application State Module use super::config::Config; use crate::stats::SharedStats; /// Shared application state pub struct AppState { pub config: Config, pub stats: SharedStats, } impl AppState { pub fn new(config: Config, stats: SharedStats) -> Self { Self { config, stats } } }