Skip to main content

HealthCheck

Trait HealthCheck 

Source
pub trait HealthCheck: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn check(&self) -> CheckResult;
}
Expand description

Something that can say whether it is working.

Required Methods§

Source

fn name(&self) -> &str

Stable, dotted, and unique among the checks registered beside it — this is what a status page keys on and what an alert names.

Source

fn check(&self) -> CheckResult

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§