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
use super::*;

/// Monotonic nanosecond clock anchored at circuit-breaker creation time.
#[derive(Clone, Copy, Debug)]
pub struct CircuitClock {
    /// Monotonic origin timestamp captured at clock creation.
    pub(crate) origin: Instant,
}