pub trait AggregatorClient: Sync + Send {
// Required method
fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<LeaderAggregatorEpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Trait for mocking and testing a AggregatorClient
Required Methods§
Sourcefn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<LeaderAggregatorEpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<LeaderAggregatorEpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves epoch settings from the aggregator