pub type PowImportQueue<B> = BasicQueue<B>;
Expand description
The PoW import queue type.
Aliased Type§
struct PowImportQueue<B> { /* private fields */ }
Implementations
§impl<B> BasicQueue<B>where
B: Block,
impl<B> BasicQueue<B>where
B: Block,
pub fn new<V>(
verifier: V,
block_import: Box<dyn BlockImport<B, Error = Error> + Send + Sync>,
justification_import: Option<Box<dyn JustificationImport<B, Error = Error> + Send + Sync>>,
spawner: &impl SpawnEssentialNamed,
prometheus_registry: Option<&Registry>,
) -> BasicQueue<B>where
V: Verifier<B> + 'static,
pub fn new<V>(
verifier: V,
block_import: Box<dyn BlockImport<B, Error = Error> + Send + Sync>,
justification_import: Option<Box<dyn JustificationImport<B, Error = Error> + Send + Sync>>,
spawner: &impl SpawnEssentialNamed,
prometheus_registry: Option<&Registry>,
) -> BasicQueue<B>where
V: Verifier<B> + 'static,
Instantiate a new basic queue, with given verifier.
This creates a background task, and calls on_start
on the justification importer.
Trait Implementations
§impl<B> ImportQueue<B> for BasicQueue<B>where
B: Block,
impl<B> ImportQueue<B> for BasicQueue<B>where
B: Block,
§fn service_ref(&mut self) -> &mut dyn ImportQueueService<B>
fn service_ref(&mut self) -> &mut dyn ImportQueueService<B>
Get a reference to the handle to [ImportQueueService
].
§fn poll_actions(&mut self, cx: &mut Context<'_>, link: &dyn Link<B>)
fn poll_actions(&mut self, cx: &mut Context<'_>, link: &dyn Link<B>)
Poll actions from network.
§fn run<'life0, 'async_trait>(
self,
link: &'life0 dyn Link<B>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
BasicQueue<B>: 'async_trait,
fn run<'life0, 'async_trait>(
self,
link: &'life0 dyn Link<B>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
BasicQueue<B>: 'async_trait,
Start asynchronous runner for import queue.
Takes an object implementing [Link
] which allows the import queue to
influence the synchronization process.