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§
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
Object Safety§
This trait is not object safe.