Skip to main content

Crate spin_connection_semaphore

Crate spin_connection_semaphore 

Source

Structs§

ConnectionPermit
Holds up to two semaphore permits (global + factor-specific). Both permits are released when this value is dropped. All-None permit fields are valid and represent the no-limits case.
ConnectionSemaphore
Wraps an optional global and an optional factor-specific semaphore.
LimitedSemaphore
A semaphore paired with its configured permit limit, so utilization can be computed.

Functions§

metric_histogram_buckets
Custom histogram bucket boundaries for the utilization metrics this crate emits.