kona_derive_alloy::prelude

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

Returns the current SystemConfig for the pipeline to reset.

Implementors§