macro_rules! ports_store {
($name:ident, $range:expr) => { ... };
($name:ident) => { ... };
}
Expand description
Declares a shared storage for ports.
ports_store!(GLOBAL_PORTS);
#[tokio::test]
fn test1() {
let cluster = ClusterBuilder::default()
.ports(GLOBAL_PORTS.take(20).await.expect("enough ports"))
.start()
.await;
}