struct ExternalSensorIOCore {
    rx: Receiver<f64>,
    stale: bool,
}
Expand description

Core implementation of ExternalSensorIO.

This simply receives update notifications sent by a callback in the dbus property-set handler path.

Fields

rx: Receiver<f64>

Channel by which we get notified of updates.

stale: bool

True if the sensor hasn’t received an update within its timeout window.

Implementations

Construct a new ExternalSensorIOCore.

Return the most recently sent value for the sensor (or NaN if it’s timed out).

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.