pub enum PaneMonitorStatus {
Healthy,
Degraded,
Violated,
}Expand description
Health of one monitored assumption.
Variants§
Healthy
The assumption holds with comfortable headroom.
Degraded
The assumption still holds but headroom is thin — worth watching.
Violated
The assumption is violated — responsiveness or correctness of the optimization is at risk.
Implementations§
Source§impl PaneMonitorStatus
impl PaneMonitorStatus
Sourcepub const fn is_violation(self) -> bool
pub const fn is_violation(self) -> bool
Whether this status is a hard violation (the CI fail condition).
Sourcepub const fn is_degraded_or_worse(self) -> bool
pub const fn is_degraded_or_worse(self) -> bool
Whether this status is at least degraded (warn-or-worse).
Trait Implementations§
Source§impl Clone for PaneMonitorStatus
impl Clone for PaneMonitorStatus
Source§fn clone(&self) -> PaneMonitorStatus
fn clone(&self) -> PaneMonitorStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PaneMonitorStatus
Source§impl Debug for PaneMonitorStatus
impl Debug for PaneMonitorStatus
impl Eq for PaneMonitorStatus
Source§impl PartialEq for PaneMonitorStatus
impl PartialEq for PaneMonitorStatus
Source§fn eq(&self, other: &PaneMonitorStatus) -> bool
fn eq(&self, other: &PaneMonitorStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PaneMonitorStatus
impl Serialize for PaneMonitorStatus
impl StructuralPartialEq for PaneMonitorStatus
Auto Trait Implementations§
impl Freeze for PaneMonitorStatus
impl RefUnwindSafe for PaneMonitorStatus
impl Send for PaneMonitorStatus
impl Sync for PaneMonitorStatus
impl Unpin for PaneMonitorStatus
impl UnsafeUnpin for PaneMonitorStatus
impl UnwindSafe for PaneMonitorStatus
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