Skip to main content

ComponentHealthChecker

Trait ComponentHealthChecker 

Source
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§

Source

fn component_name(&self) -> &str

Source

fn check_health( &self, ) -> Pin<Box<dyn Future<Output = ComponentHealth> + Send + '_>>

Implementors§