blob: 3323f04ed9454ccc4b162280aafaebb1a530df75 [file] [log] [blame]
//! # DBus interface proxy for: `xyz.openbmc_project.Sensor.Value`
//!
//! This code was generated by `zbus-xmlgen` `4.0.0` from DBus introspection data.
//! Source: `SensorProperties.xml`.
//!
//! You may prefer to adapt it, instead of using it verbatim.
//!
//! More information can be found in the
//! [Writing a client proxy](https://dbus2.github.io/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::PeerProxy`]
//! * [`zbus::fdo::IntrospectableProxy`]
//! * [`zbus::fdo::PropertiesProxy`]
//!
//! …consequently `zbus-xmlgen` did not generate code for the above interfaces.
use zbus::dbus_proxy;
#[dbus_proxy(interface = "xyz.openbmc_project.Sensor.Value", assume_defaults = true)]
trait Value {
/// MaxValue property
#[dbus_proxy(property)]
fn max_value(&self) -> zbus::Result<f64>;
/// MinValue property
#[dbus_proxy(property)]
fn min_value(&self) -> zbus::Result<f64>;
/// Unit property
#[dbus_proxy(property)]
fn unit(&self) -> zbus::Result<String>;
/// Value property
#[dbus_proxy(property)]
fn value(&self) -> zbus::Result<f64>;
#[dbus_proxy(property)]
fn set_value(&self, value: f64) -> zbus::Result<()>;
}