upower: Add a couple properties, and KbdBacklight bindings
This commit is contained in:
parent
badfc6a0bb
commit
eb5cd58587
3 changed files with 36 additions and 0 deletions
|
|
@ -111,6 +111,12 @@ trait Device {
|
|||
#[zbus(property)]
|
||||
fn temperature(&self) -> zbus::Result<f64>;
|
||||
|
||||
#[zbus(property)]
|
||||
fn time_to_empty(&self) -> zbus::Result<i64>;
|
||||
|
||||
#[zbus(property)]
|
||||
fn time_to_full(&self) -> zbus::Result<i64>;
|
||||
|
||||
#[zbus(property, name = "Type")]
|
||||
fn type_(&self) -> zbus::Result<BatteryType>;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue