thirtyfour::extensions::query

Trait ElementPoller

Source
pub trait ElementPoller: Debug {
    // Required method
    fn tick<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait for implementing the element polling strategy.

Each time the element condition is not met, the tick() method will be called. Upon returning false the polling loop will terminate.

Required Methods§

Source

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

Implementors§