pub trait Checker: Send + Sync {
// Required method
fn check<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = CheckResponse> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
An interface for something that can be periodically checked.
Required Methods§
Sourcefn check<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = CheckResponse> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn check<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = CheckResponse> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Runs the check and returns a CheckResponse
.