wayle-bluetooth 0.1.2

Bluetooth device management and discovery
Documentation
1
2
3
4
5
6
7
8
9
10
use zbus::proxy;

#[proxy(interface = "org.bluez.Battery1", default_service = "org.bluez")]
pub(crate) trait Battery1 {
    #[zbus(property)]
    fn percentage(&self) -> zbus::Result<u8>;

    #[zbus(property)]
    fn source(&self) -> zbus::Result<String>;
}