You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After expanding beyond the basic example I wanted to pass the Peripheral to a function to act on it. Sadly whenever I put "rumble::bluez::adapter::peripheral::Peripheral" in the parameters I get the following error:
error[E0603]: module `peripheral` is private
The text was updated successfully, but these errors were encountered:
Thanks for checking out rumble! The reason Peripheral is private is because it's intended as an implementation detail of the bluez (linux) implementation. Instead, try using the rumble::api::Peripheral trait.
For example:
use rumble::api::Peripheral;fnhandle_peripheral<P:Peripheral + 'static>(peripheral:P){
...}
After expanding beyond the basic example I wanted to pass the Peripheral to a function to act on it. Sadly whenever I put "rumble::bluez::adapter::peripheral::Peripheral" in the parameters I get the following error:
The text was updated successfully, but these errors were encountered: