Type Alias sc_consensus::import_queue::BoxBlockImport

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

Shared block import struct used by the queue.

Aliased Type§

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

Trait Implementations§

source§

impl<B: BlockT, Transaction> BlockImport<B> for BoxBlockImport<B, Transaction>
where Transaction: Send + 'static,

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,

Check block preconditions.

source§

fn import_block<'life0, 'async_trait>( &'life0 mut self, block: BlockImportParams<B, Transaction>, ) -> 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.
§

type Transaction = Transaction

The transaction type used by the backend.