referrerpolicy=no-referrer-when-downgrade

Trait sc_service_test::TestNetNode

source ·
pub trait TestNetNode: Clone + Future<Output = Result<(), Error>> + Send + 'static {
    type Block: BlockT;
    type Backend: Backend<Self::Block>;
    type Executor: CallExecutor<Self::Block> + Send + Sync;
    type RuntimeApi: Send + Sync;
    type TransactionPool: TransactionPool<Block = Self::Block>;

    // Required methods
    fn client(
        &self,
    ) -> Arc<Client<Self::Backend, Self::Executor, Self::Block, Self::RuntimeApi>>;
    fn transaction_pool(&self) -> Arc<Self::TransactionPool>;
    fn network(&self) -> Arc<dyn NetworkService>;
    fn sync(&self) -> &Arc<SyncingService<Self::Block>>;
    fn spawn_handle(&self) -> SpawnTaskHandle;
}

Required Associated Types§

Required Methods§

source

fn client( &self, ) -> Arc<Client<Self::Backend, Self::Executor, Self::Block, Self::RuntimeApi>>

source

fn transaction_pool(&self) -> Arc<Self::TransactionPool>

source

fn network(&self) -> Arc<dyn NetworkService>

source

fn sync(&self) -> &Arc<SyncingService<Self::Block>>

source

fn spawn_handle(&self) -> SpawnTaskHandle

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<TBl, TBackend, TExec, TRtApi, TExPool> TestNetNode for TestNetComponents<TBl, TBackend, TExec, TRtApi, TExPool>
where TBl: BlockT, TBackend: Backend<TBl> + Send + Sync + 'static, TExec: CallExecutor<TBl> + Send + Sync + 'static, TRtApi: Send + Sync + 'static, TExPool: TransactionPool<Block = TBl> + Send + Sync + 'static,

§

type Block = TBl

§

type Backend = TBackend

§

type Executor = TExec

§

type RuntimeApi = TRtApi

§

type TransactionPool = TExPool