fuel_core_poa::ports

Trait BlockImporter

source
pub trait BlockImporter: Send + Sync {
    // Required methods
    fn commit_result<'life0, 'async_trait>(
        &'life0 self,
        result: UncommittedImportResult<Changes>,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn block_stream(&self) -> BoxStream<BlockImportInfo>;
}

Required Methods§

source

fn commit_result<'life0, 'async_trait>( &'life0 self, result: UncommittedImportResult<Changes>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn block_stream(&self) -> BoxStream<BlockImportInfo>

Implementors§