pub struct ThresholdBound {
    value: SignalProp<f64>,
    hysteresis: f64,
    alarm: SignalProp<bool>,
}
Expand description

Represents a single direction of a threshold.

Fields

value: SignalProp<f64>

The threshold value.

hysteresis: f64alarm: SignalProp<bool>

Whether or not an alarm for the threshold is currently asserted.

Implementations

Construct a ThresholdBound for an object at dbuspath using the given msgfns for generating PropertiesChanged signal messages and sending them via conn.

Update self’s alarm state based on the given direction (kind) and sample value from the sensor.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.