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
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".