Skip to main content

kinetic_core/
healthcheck.rs

1//! Healthcheck trait for components.
2
3/// A trait for components that can check their connectivity/health at startup.
4#[async_trait::async_trait]
5pub trait Healthcheck: Send + Sync {
6    /// Performs the healthcheck.
7    async fn check(&self) -> anyhow::Result<()>;
8}