Update to zbus 5.x
This commit is contained in:
parent
b61e0bc94d
commit
417f43a0f5
14 changed files with 756 additions and 514 deletions
|
|
@ -25,7 +25,7 @@ use zbus::proxy;
|
|||
default_path = "/com/system76/PowerDaemon",
|
||||
assume_defaults = true
|
||||
)]
|
||||
trait PowerDaemon {
|
||||
pub trait PowerDaemon {
|
||||
/// Balanced method
|
||||
fn balanced(&self) -> zbus::Result<()>;
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ use zbus::proxy;
|
|||
default_path = "/org/freedesktop/UPower/PowerProfiles",
|
||||
assume_defaults = true
|
||||
)]
|
||||
trait PowerProfiles {
|
||||
pub trait PowerProfiles {
|
||||
/// HoldProfile method
|
||||
fn hold_profile(&self, profile: &str, reason: &str, application_id: &str) -> zbus::Result<u32>;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue