Skip to main content

Healthcheck

Trait Healthcheck 

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

A trait for components that can check their connectivity/health at startup.

Required Methods§

Source

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

Performs the healthcheck.

Implementors§