Skip to main content

HealthCheck

Trait HealthCheck 

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

Source

fn name(&self) -> &str

Returns the stable check name.

Source

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".

Implementors§