pub async fn serve_app(
addr: SocketAddr,
app: Router,
rustls_config: Option<ResolvedTlsConfig>,
shutdown: Arc<Notify>,
service_name: &str,
) -> Result<(), RpcError>Expand description
Serve an Axum router over HTTPS (if rustls_config is Some) or plain HTTP.
Uses axum_server for HTTPS with Handle-based graceful shutdown,
or standard axum::serve for HTTP. Bind-then-serve wrapper over
bind_listener + serve_bound; existing callers are unchanged.