mithril_aggregator::services

Trait UpkeepService

source
pub trait UpkeepService: Send + Sync {
    // Required method
    fn run<'life0, 'async_trait>(
        &'life0 self,
        epoch: Epoch,
    ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Define the service responsible for the upkeep of the application.

Required Methods§

source

fn run<'life0, 'async_trait>( &'life0 self, epoch: Epoch, ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Run the upkeep service.

Implementors§