MCPcopy Create free account
hub / github.com/buttplugio/buttplug / feature_map

Method feature_map

crates/buttplug_server/src/device/server_device_manager.rs:347–353  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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 {

Callers 1

parse_messageMethod · 0.80

Calls 3

cloneMethod · 0.80
legacy_attributesMethod · 0.80
devicesMethod · 0.45

Tested by

no test coverage detected