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§
Sourcefn set_starting_up(&mut self)
fn set_starting_up(&mut self)
Sets the health status to STARTING_UP.
Sourcefn set_unhealthy(&mut self, message: &str)
fn set_unhealthy(&mut self, message: &str)
Sets the health status to UNHEALTHY. A message that explains why the node is unhealthy
MUST be given.