1//! Healthcheck trait for components.
23/// 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.
7async fn check(&self) -> anyhow::Result<()>;
8}