pub trait HealthCheck {
// Required methods
fn name(&self) -> &str;
fn check(&self) -> HealthReport;
}Expand description
Contract for a component that can report health.
Required Methods§
Sourcefn check(&self) -> HealthReport
fn check(&self) -> HealthReport
Produces a current health report.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".