pub struct SensorValue {
pub sensor_id: u8,
pub current_value: i16,
pub lowest_detected_value: i16,
pub highest_detected_value: i16,
pub recorded_value: i16,
}
Fields§
§sensor_id: u8
§current_value: i16
§lowest_detected_value: i16
§highest_detected_value: i16
§recorded_value: i16
Implementations§
Trait Implementations§
Source§impl Clone for SensorValue
impl Clone for SensorValue
Source§fn clone(&self) -> SensorValue
fn clone(&self) -> SensorValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SensorValue
impl Debug for SensorValue
Source§impl PartialEq for SensorValue
impl PartialEq for SensorValue
impl Copy for SensorValue
impl StructuralPartialEq for SensorValue
Auto Trait Implementations§
impl Freeze for SensorValue
impl RefUnwindSafe for SensorValue
impl Send for SensorValue
impl Sync for SensorValue
impl Unpin for SensorValue
impl UnwindSafe for SensorValue
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