fuchsia_inspect::health

Trait Reporter

Source
pub trait Reporter {
    // Required methods
    fn set_starting_up(&mut self);
    fn set_ok(&mut self);
    fn set_unhealthy(&mut self, message: &str);
}
Expand description

A trait of a standardized health checker.

Contains the methods to set standardized health status. All standardized health status reporters must implement this trait.

Required Methods§

Source

fn set_starting_up(&mut self)

Sets the health status to STARTING_UP.

Source

fn set_ok(&mut self)

Sets the health status to OK.

Source

fn set_unhealthy(&mut self, message: &str)

Sets the health status to UNHEALTHY. A message that explains why the node is healthy MUST be given.

Implementors§