/// Constructor to create and configure the app. 
Constructor to create and configure the app.
Constructor to create and configure the app .
pub fn new(settings: AppSettings) -> Self {
        let state: AppState = Arc::new(Mutex::new(Box::new(0)));
        App { 
            app: AppImpl::new(settings, state.clone()),
            state
        }
    }
pub fn new ( settings : AppSettings ) -> Self { let state : AppState = Arc :: new ( Mutex :: new ( Box :: new ( 0 ) ) ) ; App { app : AppImpl :: new ( settings , state . clone ( ) ) , state } }
Constructor to create and configure the app.
Constructor to create and configure the app .
settings
AppSettings