Trait fuchsia_inspect::health::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§