mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Bump dbus autogen
This commit is contained in:
@@ -1,30 +1,35 @@
|
|||||||
// This code was autogenerated with `dbus-codegen-rust -s -d org.asuslinux.Daemon -f org.asuslinux.Daemon -c blocking -p /org/asuslinux/Profile -m None`, see https://github.com/diwic/dbus-rs
|
// This code was autogenerated with `dbus-codegen-rust -s -d org.asuslinux.Daemon -p /org/asuslinux/Profile -m None -f org.asuslinux.Daemon -c blocking`, see https://github.com/diwic/dbus-rs
|
||||||
use dbus;
|
use dbus as dbus;
|
||||||
#[allow(unused_imports)]
|
#[allow(unused_imports)]
|
||||||
use dbus::arg;
|
use dbus::arg;
|
||||||
use dbus::blocking;
|
use dbus::blocking;
|
||||||
|
|
||||||
pub trait OrgAsuslinuxDaemon {
|
pub trait OrgAsuslinuxDaemon {
|
||||||
fn set_profile(&self, profile: &str) -> Result<(), dbus::Error>;
|
fn set_profile(&self, profile: &str) -> Result<(), dbus::Error>;
|
||||||
|
fn active_profile_name(&self) -> Result<String, dbus::Error>;
|
||||||
fn profile(&self) -> Result<String, dbus::Error>;
|
fn profile(&self) -> Result<String, dbus::Error>;
|
||||||
fn profiles(&self) -> Result<String, dbus::Error>;
|
fn profiles(&self) -> Result<String, dbus::Error>;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, T: blocking::BlockingSender, C: ::std::ops::Deref<Target = T>> OrgAsuslinuxDaemon
|
impl<'a, T: blocking::BlockingSender, C: ::std::ops::Deref<Target=T>> OrgAsuslinuxDaemon for blocking::Proxy<'a, C> {
|
||||||
for blocking::Proxy<'a, C>
|
|
||||||
{
|
|
||||||
fn set_profile(&self, profile: &str) -> Result<(), dbus::Error> {
|
fn set_profile(&self, profile: &str) -> Result<(), dbus::Error> {
|
||||||
self.method_call("org.asuslinux.Daemon", "SetProfile", (profile,))
|
self.method_call("org.asuslinux.Daemon", "SetProfile", (profile, ))
|
||||||
|
}
|
||||||
|
|
||||||
|
fn active_profile_name(&self) -> Result<String, dbus::Error> {
|
||||||
|
self.method_call("org.asuslinux.Daemon", "ActiveProfileName", ())
|
||||||
|
.and_then(|r: (String, )| Ok(r.0, ))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn profile(&self) -> Result<String, dbus::Error> {
|
fn profile(&self) -> Result<String, dbus::Error> {
|
||||||
self.method_call("org.asuslinux.Daemon", "Profile", ())
|
self.method_call("org.asuslinux.Daemon", "Profile", ())
|
||||||
.and_then(|r: (String,)| Ok(r.0))
|
.and_then(|r: (String, )| Ok(r.0, ))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn profiles(&self) -> Result<String, dbus::Error> {
|
fn profiles(&self) -> Result<String, dbus::Error> {
|
||||||
self.method_call("org.asuslinux.Daemon", "Profiles", ())
|
self.method_call("org.asuslinux.Daemon", "Profiles", ())
|
||||||
.and_then(|r: (String,)| Ok(r.0))
|
.and_then(|r: (String, )| Ok(r.0, ))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -41,7 +46,9 @@ impl arg::AppendAll for OrgAsuslinuxDaemonNotifyProfile {
|
|||||||
|
|
||||||
impl arg::ReadAll for OrgAsuslinuxDaemonNotifyProfile {
|
impl arg::ReadAll for OrgAsuslinuxDaemonNotifyProfile {
|
||||||
fn read(i: &mut arg::Iter) -> Result<Self, arg::TypeMismatchError> {
|
fn read(i: &mut arg::Iter) -> Result<Self, arg::TypeMismatchError> {
|
||||||
Ok(OrgAsuslinuxDaemonNotifyProfile { profile: i.read()? })
|
Ok(OrgAsuslinuxDaemonNotifyProfile {
|
||||||
|
profile: i.read()?,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user