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§
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 healthy
MUST be given.