Struct omnisensor::threshold::ThresholdBoundIntfMsgFns
source · [−]struct ThresholdBoundIntfMsgFns {
value: Arc<dyn Fn(&Path<'_>, &dyn RefArg) -> Option<Message> + Send + Sync>,
alarm: Arc<dyn Fn(&Path<'_>, &dyn RefArg) -> Option<Message> + Send + Sync>,
}
Expand description
PropChgMsgFn
s for a threshold bound’s value
and alarm
properties.
Fields
value: Arc<dyn Fn(&Path<'_>, &dyn RefArg) -> Option<Message> + Send + Sync>
alarm: Arc<dyn Fn(&Path<'_>, &dyn RefArg) -> Option<Message> + Send + Sync>
Implementations
sourceimpl ThresholdBoundIntfMsgFns
impl ThresholdBoundIntfMsgFns
sourcefn build(
b: &mut IfaceBuilder<Arc<Mutex<Sensor>>>,
sev: ThresholdSeverity,
kind: ThresholdBoundType
) -> Self
fn build(
b: &mut IfaceBuilder<Arc<Mutex<Sensor>>>,
sev: ThresholdSeverity,
kind: ThresholdBoundType
) -> Self
Construct a ThresholdBoundIntfMsgFns
for the given severity sev
and bound type kind
.
Auto Trait Implementations
impl !RefUnwindSafe for ThresholdBoundIntfMsgFns
impl Send for ThresholdBoundIntfMsgFns
impl Sync for ThresholdBoundIntfMsgFns
impl Unpin for ThresholdBoundIntfMsgFns
impl !UnwindSafe for ThresholdBoundIntfMsgFns
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