Trait substrate_test_runtime_client::ClientBlockImportExt[][src]

pub trait ClientBlockImportExt<Block> where
    Block: Block
{ fn import<'life0, 'async_trait>(
        &'life0 mut self,
        origin: BlockOrigin,
        block: Block
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn import_as_best<'life0, 'async_trait>(
        &'life0 mut self,
        origin: BlockOrigin,
        block: Block
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn import_as_final<'life0, 'async_trait>(
        &'life0 mut self,
        origin: BlockOrigin,
        block: Block
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn import_justified<'life0, 'async_trait>(
        &'life0 mut self,
        origin: BlockOrigin,
        block: Block,
        justifications: Justifications
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Extension trait for a test client around block importing.

Required methods

Import block to the chain. No finality.

Import a block and make it our best block if possible.

Import a block and finalize it.

Import block with justification(s), finalizes block.

Implementations on Foreign Types

This implementation is required, because of the weird api requirements around BlockImport.

Implementors