pub trait FinalityNotifier {
    // Required methods
    fn next<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Option<BlockNumber>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn last_finalized(&self) -> BlockNumber;
}

Required Methods§

source

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

source

fn last_finalized(&self) -> BlockNumber

Implementors§

source§

impl<C, B, BE> FinalityNotifier for FinalityNotifierImpl<C, B, BE>
where C: ClientForPhron<B, BE> + Send + Sync + 'static, C::Api: PhronSessionApi<B>, B: Block, B::Header: Header<Number = BlockNumber>, BE: Backend<B> + 'static,