pub fn with_state(state: S) -> Self {
        Self {
            router: Router::new(),
            global_state: Some(Arc::new(Mutex::new(state))),
        }
    }
/// Construct an App with state.
///
/// This has the type `App<S>` where S is `+ 'static + Clone + Send` and will be passed to
/// handlers with the appropriate concrete type.
///
Construct an App with state.
This has the type `App` where S is `+ 'static + Clone + Send` and will be passed to
handlers with the appropriate concrete type.
Construct an App with state . This has the type ` App ` where S is ` + ' static + Clone + Send ` and will be passed to handlers with the appropriate concrete type .
pub fn with_state(state: S) -> Self {
        Self {
            router: Router::new(),
            global_state: Some(Arc::new(Mutex::new(state))),
        }
    }
pub fn with_state ( state : S ) -> Self { Self { router : Router :: new ( ) , global_state : Some ( Arc :: new ( Mutex :: new ( state ) ) ) , } }
Construct an App with state.
Construct an App with state .
state
S
state
S