pub struct HealthSummary {
pub observed_after: Duration,
pub policy: HealthPolicy,
pub verdict: HealthVerdict,
pub counts: HealthCounts,
pub considered_tasks: usize,
pub ignored_tasks: usize,
}Expand description
Compact aggregate observation of a monitor.
Fields§
§observed_after: DurationTime since the monitor epoch when this summary was observed.
policy: HealthPolicyPolicy used to calculate the verdict.
verdict: HealthVerdictAggregate result under the supplied policy.
counts: HealthCountsExact counts of every retained task state, including ignored states.
considered_tasks: usizeNumber of retained tasks included in the verdict.
ignored_tasks: usizeNumber of retained tasks excluded from the verdict by the policy.
Implementations§
Source§impl HealthSummary
impl HealthSummary
Sourcepub const fn is_nominal(&self) -> bool
pub const fn is_nominal(&self) -> bool
Returns whether the aggregate verdict is fully nominal.
Trait Implementations§
Source§impl Clone for HealthSummary
impl Clone for HealthSummary
impl Copy for HealthSummary
Source§impl Debug for HealthSummary
impl Debug for HealthSummary
impl Eq for HealthSummary
Source§impl PartialEq for HealthSummary
impl PartialEq for HealthSummary
impl StructuralPartialEq for HealthSummary
Auto Trait Implementations§
impl Freeze for HealthSummary
impl RefUnwindSafe for HealthSummary
impl Send for HealthSummary
impl Sync for HealthSummary
impl Unpin for HealthSummary
impl UnsafeUnpin for HealthSummary
impl UnwindSafe for HealthSummary
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