Skip to main content

HealthCheck

Trait HealthCheck 

Source
pub trait HealthCheck: Send + Sync {
    // Required method
    fn dependencies(&self) -> Vec<Arc<dyn Dependency>>;

    // Provided method
    fn check_all(
        &self,
    ) -> Pin<Box<dyn Future<Output = HealthReport> + Send + '_>> { ... }
}
Available on crate feature health only.
Expand description

A collection of dependencies that can be health-checked together

Required Methods§

Source

fn dependencies(&self) -> Vec<Arc<dyn Dependency>>

Get all dependencies to check

Provided Methods§

Source

fn check_all(&self) -> Pin<Box<dyn Future<Output = HealthReport> + Send + '_>>

Check all dependencies and return a comprehensive health report

Implementors§