Trait sc_service_test::TestNetNode [−][src]
pub trait TestNetNode: Clone + Future<Item = (), Error = 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>; fn client(
&self
) -> Arc<Client<Self::Backend, Self::Executor, Self::Block, Self::RuntimeApi>>; fn transaction_pool(&self) -> Arc<Self::TransactionPool>; fn network(
&self
) -> Arc<NetworkService<Self::Block, <Self::Block as BlockT>::Hash>>; fn spawn_handle(&self) -> SpawnTaskHandle; }
Associated Types
type RuntimeApi: Send + Sync
type TransactionPool: TransactionPool<Block = Self::Block>
Required methods
fn transaction_pool(&self) -> Arc<Self::TransactionPool>
fn spawn_handle(&self) -> SpawnTaskHandle
Implementors
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,