pub trait Factory {
fn versions<'a>(&'a self) -> Box<dyn Iterator<Item = Version> + 'a>;
fn launch_swarm<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
rng: &'life1 mut StdRng,
node_num: NonZeroUsize,
version: &'life2 Version,
genesis_version: &'life3 Version,
genesis_modules: Option<&'life4 GenesisConfig>
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Swarm>>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: 'async_trait;
}Expand description
Trait used to represent a interface for constructing a launching new networks