[][src]Trait health::Reporter

pub trait Reporter {
    fn last_check(&self) -> Check;

    fn raw_status(&self) -> Status { ... }
fn status(&self) -> Option<Status> { ... } }

A health status reporter

Required methods

fn last_check(&self) -> Check

The result of the most recent health check

Because it may take multiple checks to cause the health status to change, this value may match the current health status.

Loading content...

Provided methods

fn raw_status(&self) -> Status

The current health status without regard to any reliance criteria

fn status(&self) -> Option<Status>

The current health status of the underlying health check or None if the current status should not be relyed upon

Loading content...

Implementors

impl<C: Checkable> Reporter for PeriodicChecker<C>[src]

fn raw_status(&self) -> Status[src]

The current health status without consideration for when the health status was last updated

fn status(&self) -> Option<Status>[src]

The current health status or None if the health check hasn't updated its internal state within the leeway time

fn last_check(&self) -> Check[src]

The result of the most recent health check

Loading content...