pub enum ClockHealth {
Healthy,
Degraded {
drift_ms: u64,
},
Critical {
drift_ms: u64,
},
}Expand description
Health status of the HLC clock.
Variants§
Healthy
Clock drift is within normal bounds (<100ms).
Degraded
Clock drift is elevated but acceptable (100ms - 1s).
Critical
Clock drift is critical (>1s) - indicates NTP failure or partition.
Implementations§
Source§impl ClockHealth
impl ClockHealth
Sourcepub const fn is_healthy(&self) -> bool
pub const fn is_healthy(&self) -> bool
Check if the clock is in a healthy state.
Sourcepub const fn is_critical(&self) -> bool
pub const fn is_critical(&self) -> bool
Check if the clock is in a critical state.
Trait Implementations§
Source§impl Clone for ClockHealth
impl Clone for ClockHealth
Source§fn clone(&self) -> ClockHealth
fn clone(&self) -> ClockHealth
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClockHealth
impl Debug for ClockHealth
Source§impl PartialEq for ClockHealth
impl PartialEq for ClockHealth
impl Copy for ClockHealth
impl Eq for ClockHealth
impl StructuralPartialEq for ClockHealth
Auto Trait Implementations§
impl Freeze for ClockHealth
impl RefUnwindSafe for ClockHealth
impl Send for ClockHealth
impl Sync for ClockHealth
impl Unpin for ClockHealth
impl UnwindSafe for ClockHealth
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more