kona_derive::traits

Trait ResetProvider

Source
pub trait ResetProvider {
    // Required methods
    fn block_info<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = BlockInfo> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn system_config<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = SystemConfig> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Provides the BlockInfo and SystemConfig for the stack to reset the stages.

Required Methods§

Source

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

Returns the current BlockInfo for the pipeline to reset.

Source

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

Returns the current SystemConfig for the pipeline to reset.

Implementors§