buttplug-developer-guide
buttplug-developer-guide copied to clipboard
examples: Update Rust examples for buttplug v6
Follow up to #54. I was mostly able to migrate the example code to the v6 API, however I have a few questions about device_control.rs:
server::comm_managers::test::new_bluetoothle_test_devicewas moved totests::util::test_device_managerand no longer appears visible to other crates.ClientDeviceMessageAttributesMapwas refactored into theClientDeviceMessageAttributesstruct and I cannot find an ergonomic way to implement loop over the supported messages and attributes (device_control.rsline 55-63 in this PR).
I'm by no means a Rust expert, so apologies if these issues should be simple.