dscale 0.6.3

A fast & deterministic simulation framework for benchmarking and testing distributed systems
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::{
    Pid,
    services::{Services, with_services},
};

impl Services {
    fn list_pool(&self, pool_name: &str) -> &[Pid] {
        self.topology.list_pool(pool_name)
    }
}

/// Returns a slice of all process pids in the named pool.
pub fn list_pool(pool_name: &str) -> Vec<Pid> {
    // Can we do the same but without to_vec()?
    with_services(|services| services.list_pool(pool_name).to_vec())
}