use crateRuntimeError;
use Arc;
use AtomicBool;
use Duration;
/// Minimum allowed interval for resource health checks.
pub const MIN_HEALTH_INTERVAL: Duration = from_secs;
/// Shared health state for all registered resources.
/// Fixed-size array allocated once from the resource registry. Each entry is
/// (resource name, healthy flag). Health check tasks write the AtomicBool;
/// the `/health` endpoint reads it. Zero allocation at request time.
pub type HealthState = ;
/// A managed external resource that participates in the runtime lifecycle.
///
/// Implement this trait on database pools, caches, message brokers, or any
/// long-lived resource that needs health checking and graceful shutdown.
///
/// All methods are synchronous. Health checks run via `block_in_place` on a
/// background thread. Shutdown runs during runtime teardown before Tokio
/// shuts down.