Type Alias sc_consensus::import_queue::BoxBlockImport

source ·
pub type BoxBlockImport<B> = Box<dyn BlockImport<B, Error = Error> + Send + Sync>;
Expand description

Shared block import struct used by the queue.

Aliased Type§

struct BoxBlockImport<B>(/* private fields */);

Trait Implementations§

source§

impl<B: BlockT> BlockImport<B> for BoxBlockImport<B>

source§

fn check_block<'life0, 'async_trait>( &'life0 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 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.

§

type Error = Error

The error type.