diff --git a/upower/src/device.rs b/upower/src/device.rs index bea86fa..e3b0f9f 100644 --- a/upower/src/device.rs +++ b/upower/src/device.rs @@ -187,15 +187,14 @@ pub trait Device { fn voltage_max_design(&self) -> zbus::Result; + fn get_history(&self, type_: String, timespan: u32, resolution: u32) -> zbus::Result>; + + fn get_statistics(&self, type_: String) -> zbus::Result>; + + #[zbus(signal)] fn enable_charge_threshold(&self, message: bool) -> zbus::Result<()>; - #[zbus(signal)] - fn get_history(&self, type_: String, timespan: u32, resolution: u32) -> zbus::Result>; - - #[zbus(signal)] - fn get_statistics(&self, type_: String) -> zbus::Result<()>; - #[zbus(signal)] fn refresh(&self) -> zbus::Result<()>; }