pub trait ComponentHealthChecker: Send + Sync {
// Required methods
fn component_name(&self) -> &str;
fn check_health(
&self,
) -> Pin<Box<dyn Future<Output = ComponentHealth> + Send + '_>>;
}Expand description
Component health checker trait
Required Methods§
fn component_name(&self) -> &str
fn check_health( &self, ) -> Pin<Box<dyn Future<Output = ComponentHealth> + Send + '_>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".