HealthCheck

Trait HealthCheck 

Source
pub trait HealthCheck: Send + Sync {
    // Required method
    fn check<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = ComponentHealth> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait for components that can report their health.

Required Methods§

Source

fn check<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ComponentHealth> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Perform a health check and return the status.

Implementors§