atomic-circuit-breaker 11.2.0

Zero-dependency, lock-free atomic sliding-window circuit breaker with CAS probe gating, monotonic clock support, and RAII guards.
Documentation
1
2
3
4
5
6
7
8
9
10
/// Lifecycle states of an atomic circuit breaker.
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
pub enum CircuitState {
    /// Normal traffic is admitted and outcomes are tracked in the sliding window.
    Closed,
    /// Traffic is rejected immediately until the cooldown duration elapses.
    Open,
    /// Limited probe calls are admitted via atomic CAS to test upstream recovery.
    HalfOpen,
}