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§


fn set_starting_up(&mut self)

Sets the health status to STARTING_UP.


fn set_ok(&mut self)

Sets the health status to OK.


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.