[][src]Trait substrate_service::ServiceBuilderExport

pub trait ServiceBuilderExport {
    type Block: BlockT;
    fn export_blocks(
        &self,
        exit: impl Future<Item = (), Error = ()> + Send + 'static,
        output: impl Write,
        from: NumberFor<Self::Block>,
        to: Option<NumberFor<Self::Block>>,
        json: bool
    ) -> Result<(), Error>; }

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

Associated Types

type Block: BlockT

Type of block of the builder.

Loading content...

Required methods

fn export_blocks(
    &self,
    exit: impl Future<Item = (), Error = ()> + Send + 'static,
    output: impl Write,
    from: NumberFor<Self::Block>,
    to: Option<NumberFor<Self::Block>>,
    json: bool
) -> Result<(), Error>

Performs the blocks export.

Loading content...

Implementors

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

type Block = TBl

Loading content...