[][src]Trait substrate_service::ServiceBuilderImport

pub trait ServiceBuilderImport {
    fn import_blocks(
        self,
        exit: impl Future<Item = (), Error = ()> + Send + 'static,
        input: impl Read + Seek
    ) -> Result<Box<dyn Future<Item = (), Error = ()> + Send>, Error>; }

Implemented on ServiceBuilder. Allows importing blocks once you have given all the required components to the builder.

Required methods

fn import_blocks(
    self,
    exit: impl Future<Item = (), Error = ()> + Send + 'static,
    input: impl Read + Seek
) -> Result<Box<dyn Future<Item = (), Error = ()> + Send>, Error>

Starts the process of importing blocks.

Loading content...

Implementors

impl<TBl, TRtApi, TCfg, TGen, TBackend, TExec, TFchr, TSc, TImpQu, TFprb, TFpp, TNetP, TExPool, TRpc, TRpcB, Backend> ServiceBuilderImport for ServiceBuilder<TBl, TRtApi, TCfg, TGen, Client<TBackend, TExec, TBl, TRtApi>, TFchr, TSc, TImpQu, TFprb, TFpp, TNetP, TExPool, TRpc, TRpcB, Backend> where
    TBl: BlockT<Hash = <Blake2Hasher as Hasher>::Out>,
    TBackend: 'static + Backend<TBl, Blake2Hasher> + Send,
    TExec: 'static + CallExecutor<TBl, Blake2Hasher> + Send + Sync + Clone,
    TImpQu: 'static + ImportQueue<TBl>,
    TRtApi: 'static + Send + Sync
[src]

Loading content...