Type Definition sc_consensus::import_queue::BoxBlockImport
source · pub type BoxBlockImport<B> = Box<dyn BlockImport<B, Error = ConsensusError> + Send + Sync>;
Expand description
Shared block import struct used by the queue.
Trait Implementations§
source§impl<B: BlockT> BlockImport<B> for BoxBlockImport<B>
impl<B: BlockT> BlockImport<B> for BoxBlockImport<B>
source§fn check_block<'life0, 'async_trait>(
&'life0 mut self,
block: BlockCheckParams<B>
) -> Pin<Box<dyn Future<Output = Result<ImportResult, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn check_block<'life0, 'async_trait>( &'life0 mut self, block: BlockCheckParams<B> ) -> Pin<Box<dyn Future<Output = Result<ImportResult, Self::Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Check block preconditions.
source§fn import_block<'life0, 'async_trait>(
&'life0 mut self,
block: BlockImportParams<B>
) -> Pin<Box<dyn Future<Output = Result<ImportResult, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn import_block<'life0, 'async_trait>( &'life0 mut self, block: BlockImportParams<B> ) -> Pin<Box<dyn Future<Output = Result<ImportResult, Self::Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Import a block.