pub type ClusterInfoProvider = Arc<dyn Fn() -> ClusterInfoSnapshot + Send + Sync>;Expand description
Type alias for a closure that produces a fresh
ClusterInfoSnapshot every time the /cluster-info.txt
route is hit.
The closure must be Send + Sync so a clone can be moved
into each accept-handler task. The runtime owns the closure;
embedders set it via
StatsServer::with_cluster_info_provider.
Aliased Typeยง
pub struct ClusterInfoProvider { /* private fields */ }