pub trait HealthCheck:
Send
+ Sync
+ 'static {
// Required methods
fn name(&self) -> &'static str;
fn check<'life0, 'life1, 'async_trait>(
&'life0 self,
app: &'life1 App,
) -> Pin<Box<dyn Future<Output = HealthStatus> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
A pluggable diagnostic check run by the doctor subcommand.
Register implementations via HEALTH_CHECKS using linkme.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".