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>; }