circuit_state
Represents the current state of a circuit breaker.
@ CLOSED
Normal operation state. Requests are allowed and failures are tracked.
@ HALF_OPEN
Recovery testing state. Limited requests are allowed to test if service has recovered.
@ OPEN
Failure state. Requests are immediately rejected without execution. Transitions to HALF_OPEN after ti...
auto to_string(circuit_state state) -> std::string
Convert circuit state to human-readable string.