Skip to main content

HealthCheck

Trait HealthCheck 

Source
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§

Source

fn category(&self) -> &'static str

Category name for grouping (e.g., platform_cli).

Source

fn run(&self) -> Vec<CheckItem>

Run all checks in this category, returning results. Must not fail fast — collect all results even if some checks fail.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§