pub trait HealthCheck: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn check<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = HealthResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided methods
fn timeout(&self) -> Duration { ... }
fn is_critical(&self) -> bool { ... }
}Expand description
Individual health check trait
Required Methods§
Provided Methods§
Sourcefn is_critical(&self) -> bool
fn is_critical(&self) -> bool
Check if this health check is critical for overall system health
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".