Skip to main content

ChecksTarget

Trait ChecksTarget 

Source
pub trait ChecksTarget<T: Clone + Display + Debug>:
    Send
    + Sync
    + 'static {
    // Required method
    fn check<'life0, 'life1, 'async_trait>(
        &'life0 self,
        target: &'life1 T,
    ) -> Pin<Box<dyn Future<Output = TargetState> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Checks if given target is healthy

Required Methods§

Source

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

Implementors§