pub type RingProvider = Arc<dyn Fn() -> RingSnapshot + Send + Sync>;Expand description
Type alias for a closure that produces a fresh
RingSnapshot every time the /ring route is hit.
The closure must be Send + Sync so a clone can be moved
into each accept-handler task. Embedders set it via
StatsServer::with_ring_provider; when unset the /ring
route returns 503 Service Unavailable.
Aliased Typeยง
pub struct RingProvider { /* private fields */ }