pub async fn serve(router: Router, config: RuntimeConfig) -> Result<()>
Serves the router with the provided configuration.