Trait EraFetcher

Source
pub trait EraFetcher: Send + Sync {
    // Required method
    fn fetch_current_era<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = MithrilResult<FetchedEra>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait for retrieving the current Mithril era.

Required Methods§

Source

fn fetch_current_era<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = MithrilResult<FetchedEra>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Fetch the current Mithril era.

Implementors§