pub trait HealthCheck {
// Required method
fn check_health(&self) -> HealthCheckResult;
// Provided methods
fn is_alive(&self) -> bool { ... }
fn is_ready(&self) -> bool { ... }
}Expand description
Health check trait for components
Required Methods§
Sourcefn check_health(&self) -> HealthCheckResult
fn check_health(&self) -> HealthCheckResult
Perform a health check