pub struct Threshold {
    bounds: [ThresholdBound; 2],
}
Expand description

A threshold of a single severity (lower and upper bounds).

Fields

bounds: [ThresholdBound; 2]

The lower and upper bounds for a single severity level.

Implementations

Update both the lower and upper bounds based on the given 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.