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

Method devices

crates/buttplug_client/src/lib.rs:452–458  ·  view source on GitHub ↗

Retreives a list of currently connected devices.

(&self)

Source from the content-addressed store, hash-verified

450
451 /// Retreives a list of currently connected devices.
452 pub fn devices(&self) -> BTreeMap<u32, ButtplugClientDevice> {
453 self
454 .device_map
455 .iter()
456 .map(|map_pair| (*map_pair.key(), map_pair.value().clone()))
457 .collect()
458 }
459
460 pub fn ping(&self) -> ButtplugClientResultFuture {
461 let ping_fut = self

Callers 14

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
get_deviceFunction · 0.45
get_devicesFunction · 0.45
get_device_infoFunction · 0.45
run_device_event_streamFunction · 0.45
convert_device_listMethod · 0.45
event_streamMethod · 0.45
feature_mapMethod · 0.45
fromMethod · 0.45
fromMethod · 0.45

Calls 2

cloneMethod · 0.80
valueMethod · 0.80

Tested by

no test coverage detected