rf_distributed/discovery/
nbr_sensors_setup.rs

1use rf_core::context::NbrSensors;
2
3/// This trait represent a strategy to setup the neighbouring sensors of the device.
4pub trait NbrSensorSetup {
5    /// Setup the neighbouring sensors of the device.
6    ///
7    /// # Arguments
8    /// * `nbrs` - The ids of the neighbouring sensors.
9    ///
10    /// # Returns
11    /// A map containing the neighbouring sensors.
12    fn nbr_sensor_setup(&self, nbrs: Vec<i32>) -> NbrSensors;
13}