// This code was autogenerated with `dbus-codegen-rust -s -d org.asuslinux.Daemon -p /org/asuslinux/Gfx -m None -f org.asuslinux.Daemon -c blocking`, see https://github.com/diwic/dbus-rs use dbus as dbus; #[allow(unused_imports)] use dbus::arg; use dbus::blocking; pub trait OrgAsuslinuxDaemon { fn vendor(&self) -> Result; fn power(&self) -> Result; fn set_vendor(&self, vendor: &str) -> Result<(), dbus::Error>; } impl<'a, T: blocking::BlockingSender, C: ::std::ops::Deref> OrgAsuslinuxDaemon for blocking::Proxy<'a, C> { fn vendor(&self) -> Result { self.method_call("org.asuslinux.Daemon", "Vendor", ()) .and_then(|r: (String, )| Ok(r.0, )) } fn power(&self) -> Result { self.method_call("org.asuslinux.Daemon", "Power", ()) .and_then(|r: (String, )| Ok(r.0, )) } fn set_vendor(&self, vendor: &str) -> Result<(), dbus::Error> { self.method_call("org.asuslinux.Daemon", "SetVendor", (vendor, )) } } #[derive(Debug)] pub struct OrgAsuslinuxDaemonNotifyGfx { pub vendor: String, } impl arg::AppendAll for OrgAsuslinuxDaemonNotifyGfx { fn append(&self, i: &mut arg::IterAppend) { arg::RefArg::append(&self.vendor, i); } } impl arg::ReadAll for OrgAsuslinuxDaemonNotifyGfx { fn read(i: &mut arg::Iter) -> Result { Ok(OrgAsuslinuxDaemonNotifyGfx { vendor: i.read()?, }) } } impl dbus::message::SignalArgs for OrgAsuslinuxDaemonNotifyGfx { const NAME: &'static str = "NotifyGfx"; const INTERFACE: &'static str = "org.asuslinux.Daemon"; } #[derive(Debug)] pub struct OrgAsuslinuxDaemonNotifyAction { pub action: String, } impl arg::AppendAll for OrgAsuslinuxDaemonNotifyAction { fn append(&self, i: &mut arg::IterAppend) { arg::RefArg::append(&self.action, i); } } impl arg::ReadAll for OrgAsuslinuxDaemonNotifyAction { fn read(i: &mut arg::Iter) -> Result { Ok(OrgAsuslinuxDaemonNotifyAction { action: i.read()?, }) } } impl dbus::message::SignalArgs for OrgAsuslinuxDaemonNotifyAction { const NAME: &'static str = "NotifyAction"; const INTERFACE: &'static str = "org.asuslinux.Daemon"; }