mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
82900f4645
- dbus method for 'supported modes' - add dedicated gfx safety - bring ctrl-gfx back in to main control for better integration - safely upgrade config files
19 lines
717 B
Rust
19 lines
717 B
Rust
// This code was autogenerated with `dbus-codegen-rust -s -d org.asuslinux.Daemon -f org.asuslinux.Daemon -c blocking -p /org/asuslinux/Supported -m None -o asus-nb/src/dbus_supported.rs`, see https://github.com/diwic/dbus-rs
|
|
use dbus;
|
|
#[allow(unused_imports)]
|
|
use dbus::arg;
|
|
use dbus::blocking;
|
|
|
|
pub trait OrgAsuslinuxDaemon {
|
|
fn supported_functions(&self) -> Result<String, dbus::Error>;
|
|
}
|
|
|
|
impl<'a, T: blocking::BlockingSender, C: ::std::ops::Deref<Target = T>> OrgAsuslinuxDaemon
|
|
for blocking::Proxy<'a, C>
|
|
{
|
|
fn supported_functions(&self) -> Result<String, dbus::Error> {
|
|
self.method_call("org.asuslinux.Daemon", "SupportedFunctions", ())
|
|
.and_then(|r: (String,)| Ok(r.0))
|
|
}
|
|
}
|