Skip to main content

register_limit

Function register_limit 

Source
pub fn register_limit(name: TrackedLimit, capacity: usize) -> Arc<QueueGauge> 
Expand description

Register a non-queue bounded limit (a saturating resource or memory envelope) with the global registry, so it shares the same approach-warning + snapshot machinery as queues. Observe usage with QueueGauge::observe_depth.