Skip to main content

inc_cb_transition

Function inc_cb_transition 

Source
pub fn inc_cb_transition(state: &str)
Expand description

Increment the circuit-breaker state-transition counter for state.

state should be "open", "half_open", or "closed".

No-op if metrics have not been initialised.

ยงPanics

This function never panics.