Struct omnisensor::sensor::ValueIntfMsgFns
source · [−]pub struct ValueIntfMsgFns {
pub unit: Arc<dyn Fn(&Path<'_>, &dyn RefArg) -> Option<Message> + Send + Sync>,
pub value: Arc<dyn Fn(&Path<'_>, &dyn RefArg) -> Option<Message> + Send + Sync>,
pub minvalue: Arc<dyn Fn(&Path<'_>, &dyn RefArg) -> Option<Message> + Send + Sync>,
pub maxvalue: Arc<dyn Fn(&Path<'_>, &dyn RefArg) -> Option<Message> + Send + Sync>,
}
Expand description
A collection of PropChgMsgFn
s for the xyz.openbmc_project.Sensor.Value
interface.
Fields
unit: Arc<dyn Fn(&Path<'_>, &dyn RefArg) -> Option<Message> + Send + Sync>
value: Arc<dyn Fn(&Path<'_>, &dyn RefArg) -> Option<Message> + Send + Sync>
minvalue: Arc<dyn Fn(&Path<'_>, &dyn RefArg) -> Option<Message> + Send + Sync>
maxvalue: Arc<dyn Fn(&Path<'_>, &dyn RefArg) -> Option<Message> + Send + Sync>
Implementations
sourceimpl ValueIntfMsgFns
impl ValueIntfMsgFns
sourcefn build(cr: &mut Crossroads, writable: bool) -> SensorIntf<Self>
fn build(cr: &mut Crossroads, writable: bool) -> SensorIntf<Self>
Construct the xyz.openbmc_project.Sensor.Value
interface.
Auto Trait Implementations
impl !RefUnwindSafe for ValueIntfMsgFns
impl Send for ValueIntfMsgFns
impl Sync for ValueIntfMsgFns
impl Unpin for ValueIntfMsgFns
impl !UnwindSafe for ValueIntfMsgFns
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