//! # `DBus` interface proxy for: `org.asuslinux.Daemon` //! //! This code was generated by `zbus-xmlgen` `1.0.0` from `DBus` introspection //! data. Source: `Interface '/org/asuslinux/Platform' from service //! 'org.asuslinux.Daemon' on system bus`. //! //! You may prefer to adapt it, instead of using it verbatim. //! //! More information can be found in the //! [Writing a client proxy](https://zeenix.pages.freedesktop.org/zbus/client.html) //! section of the zbus documentation. //! //! This `DBus` object implements //! [standard `DBus` interfaces](https://dbus.freedesktop.org/doc/dbus-specification.html), //! (`org.freedesktop.DBus.*`) for which the following zbus proxies can be used: //! //! * [`zbus::fdo::PropertiesProxy`] //! * [`zbus::fdo::PeerProxy`] //! * [`zbus::fdo::IntrospectableProxy`] //! //! …consequently `zbus-xmlgen` did not generate code for the above interfaces. use rog_platform::platform::{GpuMode, Properties, ThrottlePolicy}; use zbus::dbus_proxy; #[dbus_proxy( interface = "org.asuslinux.Daemon", default_service = "org.asuslinux.Daemon", default_path = "/org/asuslinux/Platform" )] trait Platform { /// NextThrottleThermalPolicy method fn next_throttle_thermal_policy(&self) -> zbus::Result<()>; /// SupportedInterfaces method fn supported_interfaces(&self) -> zbus::Result>; /// SupportedProperties method fn supported_properties(&self) -> zbus::Result>; /// ChargeControlEndThreshold property #[dbus_proxy(property)] fn charge_control_end_threshold(&self) -> zbus::Result; #[dbus_proxy(property)] fn set_charge_control_end_threshold(&self, value: u8) -> zbus::Result<()>; /// DgpuDisable property #[dbus_proxy(property)] fn dgpu_disable(&self) -> zbus::Result; /// EgpuEnable property #[dbus_proxy(property)] fn egpu_enable(&self) -> zbus::Result; /// GpuMuxMode property #[dbus_proxy(property)] fn gpu_mux_mode(&self) -> zbus::Result; #[dbus_proxy(property)] fn set_gpu_mux_mode(&self, value: GpuMode) -> zbus::Result<()>; /// MiniLedMode property #[dbus_proxy(property)] fn mini_led_mode(&self) -> zbus::Result; #[dbus_proxy(property)] fn set_mini_led_mode(&self, value: bool) -> zbus::Result<()>; /// NvDynamicBoost property #[dbus_proxy(property)] fn nv_dynamic_boost(&self) -> zbus::Result; #[dbus_proxy(property)] fn set_nv_dynamic_boost(&self, value: u8) -> zbus::Result<()>; /// NvTempTarget property #[dbus_proxy(property)] fn nv_temp_target(&self) -> zbus::Result; #[dbus_proxy(property)] fn set_nv_temp_target(&self, value: u8) -> zbus::Result<()>; /// PanelOd property #[dbus_proxy(property)] fn panel_od(&self) -> zbus::Result; #[dbus_proxy(property)] fn set_panel_od(&self, value: bool) -> zbus::Result<()>; /// PostAnimationSound property #[dbus_proxy(property)] fn post_animation_sound(&self) -> zbus::Result; #[dbus_proxy(property)] fn set_post_animation_sound(&self, value: bool) -> zbus::Result<()>; /// PptApuSppt property #[dbus_proxy(property)] fn ppt_apu_sppt(&self) -> zbus::Result; #[dbus_proxy(property)] fn set_ppt_apu_sppt(&self, value: u8) -> zbus::Result<()>; /// PptFppt property #[dbus_proxy(property)] fn ppt_fppt(&self) -> zbus::Result; #[dbus_proxy(property)] fn set_ppt_fppt(&self, value: u8) -> zbus::Result<()>; /// PptPl1Spl property #[dbus_proxy(property)] fn ppt_pl1_spl(&self) -> zbus::Result; #[dbus_proxy(property)] fn set_ppt_pl1_spl(&self, value: u8) -> zbus::Result<()>; /// PptPl2Sppt property #[dbus_proxy(property)] fn ppt_pl2_sppt(&self) -> zbus::Result; #[dbus_proxy(property)] fn set_ppt_pl2_sppt(&self, value: u8) -> zbus::Result<()>; /// PptPlatformSppt property #[dbus_proxy(property)] fn ppt_platform_sppt(&self) -> zbus::Result; #[dbus_proxy(property)] fn set_ppt_platform_sppt(&self, value: u8) -> zbus::Result<()>; /// ThrottlePolicy property #[dbus_proxy(property)] fn throttle_thermal_policy(&self) -> zbus::Result; #[dbus_proxy(property)] fn set_throttle_thermal_policy(&self, value: ThrottlePolicy) -> zbus::Result<()>; }