pub struct SensorMeasurement {
pub sensor_id: u8,
pub value: f64,
}Expand description
A measurement packet from an identifiable sensor source.
Fields§
§sensor_id: u8Sensor ID matching the configured SensorSource
value: f64Measured observation value
Trait Implementations§
Source§impl Clone for SensorMeasurement
impl Clone for SensorMeasurement
impl Copy for SensorMeasurement
Auto Trait Implementations§
impl Freeze for SensorMeasurement
impl RefUnwindSafe for SensorMeasurement
impl Send for SensorMeasurement
impl Sync for SensorMeasurement
impl Unpin for SensorMeasurement
impl UnsafeUnpin for SensorMeasurement
impl UnwindSafe for SensorMeasurement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more