Function tetcore_test_client::client::new_with_backend [−][src]
pub fn new_with_backend<B, E, Block, S, RA>(
backend: Arc<B>,
executor: E,
build_genesis_storage: &S,
keystore: Option<Arc<dyn SyncCryptoStore + 'static>>,
spawn_handle: Box<dyn SpawnNamed + 'static, Global>,
prometheus_registry: Option<Registry>,
config: ClientConfig
) -> Result<Client<B, LocalCallExecutor<B, E>, Block, RA>, Error> where
Block: Block,
E: CodeExecutor + RuntimeInfo,
B: LocalBackend<Block> + 'static,
S: BuildStorage,
Create a client with the explicitly provided backend. This is useful for testing backend implementations.