Struct omnisensor::sensor::SensorIntfData
source · [−]pub struct SensorIntfData {
pub value: SensorIntf<ValueIntfMsgFns>,
pub writable_value: SensorIntf<ValueIntfMsgFns>,
pub availability: SensorIntf<AvailabilityIntfMsgFns>,
pub opstatus: SensorIntf<OpStatusIntfMsgFns>,
pub thresholds: [SensorIntf<ThresholdIntfMsgFns>; 5],
pub assoc: SensorIntf<AssocIntfMsgFns>,
}
Expand description
The aggregate of all the dbus interfaces for a sensor.
Fields
value: SensorIntf<ValueIntfMsgFns>
The xyz.openbmc_project.Sensor.Value
interface.
writable_value: SensorIntf<ValueIntfMsgFns>
The xyz.openbmc_project.Sensor.Value
interface, with a writable Value property.
availability: SensorIntf<AvailabilityIntfMsgFns>
The xyz.openbmc_project.State.Decorator.Availability
interface.
opstatus: SensorIntf<OpStatusIntfMsgFns>
The xyz.openbmc_project.State.Decorator.OperationalStatus
interface.
thresholds: [SensorIntf<ThresholdIntfMsgFns>; 5]
A per-severity-level array of xyz.openbmc_project.Sensor.Threshold.$everity
interfaces.
assoc: SensorIntf<AssocIntfMsgFns>
The xyz.openbmc_project.Association.Definitions
interface.
Implementations
sourceimpl SensorIntfData
impl SensorIntfData
sourcepub fn build(cr: &mut Crossroads) -> Self
pub fn build(cr: &mut Crossroads) -> Self
Construct SensorIntfData
.
sourcepub fn value_intf(&self, mode: &SensorMode) -> &SensorIntf<ValueIntfMsgFns>
pub fn value_intf(&self, mode: &SensorMode) -> &SensorIntf<ValueIntfMsgFns>
Retrieve the appropriate Value interface for the specified writability.
Auto Trait Implementations
impl !RefUnwindSafe for SensorIntfData
impl Send for SensorIntfData
impl Sync for SensorIntfData
impl Unpin for SensorIntfData
impl !UnwindSafe for SensorIntfData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more