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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.