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§
Sourcefn dependencies(&self) -> Vec<Arc<dyn Dependency>>
fn dependencies(&self) -> Vec<Arc<dyn Dependency>>
Get all dependencies to check