Checker

Trait Checker 

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

An interface for something that can be periodically checked.

Required Methods§

Source

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

Runs the check and returns a CheckResponse.

Implementors§