Arcature application framework: a high-level Application facade over the certified Arcature subsystems, with the low-level Axum/Tower escape hatch preserved.
usesuper::App;impl<S>App<S>where
S: Clone + Send + Sync + 'static,
{/// Provide the application state.
////// Forwards to [`axum::Router::with_state`]. Handlers registered on this
/// application may extract `S` via [`axum::extract::State`]; this call
/// resolves that state, producing an `App<S2>` whose expected state type
/// becomes `S2` (commonly `()` when all state is now provided). The state
/// type is tracked by the compiler, not erased.
pubfnwith_state<S2>(self, state: S)->App<S2>{
App {
router:self.router.with_state(state),}}}