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§
Sourcefn name(&self) -> &str
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.
fn check(&self) -> CheckResult
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".