(&self)
| 345 | } |
| 346 | |
| 347 | pub(crate) fn feature_map(&self) -> BTreeMap<u32, ServerDeviceAttributes> { |
| 348 | self |
| 349 | .devices() |
| 350 | .iter() |
| 351 | .map(|x| (*x.key(), x.legacy_attributes().clone())) |
| 352 | .collect() |
| 353 | } |
| 354 | |
| 355 | pub fn device_info(&self, index: u32) -> Option<ServerDeviceInfo> { |
| 356 | self.devices.get(&index).map(|device| ServerDeviceInfo { |
no test coverage detected