Skip to main content

router

Function router 

Source
pub fn router(state: Arc<AppState>) -> Router
Expand description

Serve it with into_make_service_with_connect_info::<SocketAddr>(), since the report limiter needs the peer address.