pub struct SensorReading {
pub distance: u16,
pub signal_strength: u16,
pub temperature: f32,
pub timestamp: u16,
pub error: u16,
}
Expand description
Structure containing distance, signal strength, temperature, and timestamp.
Fields§
§distance: u16
Distance in centimeters
signal_strength: u16
Signal strength (amplitude in manual) value between 0 and 1000.
temperature: f32
Internal device temperature in °C with 0.01 precision.
timestamp: u16
Clock ticks since device was powered on.
error: u16
Error code
Trait Implementations§
Source§impl Clone for SensorReading
impl Clone for SensorReading
Source§fn clone(&self) -> SensorReading
fn clone(&self) -> SensorReading
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 SensorReading
impl Debug for SensorReading
Source§impl Format for SensorReading
impl Format for SensorReading
Source§impl PartialEq for SensorReading
impl PartialEq for SensorReading
impl Copy for SensorReading
impl StructuralPartialEq for SensorReading
Auto Trait Implementations§
impl Freeze for SensorReading
impl RefUnwindSafe for SensorReading
impl Send for SensorReading
impl Sync for SensorReading
impl Unpin for SensorReading
impl UnwindSafe for SensorReading
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