pub trait HealthCheck: Send + Sync {
// Required methods
fn category(&self) -> &'static str;
fn run(&self) -> Vec<CheckItem>;
}Expand description
Trait for health check categories.
Each category implements this trait to provide a group of related checks.
The gf doctor command iterates over all registered categories and collects results.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".