Struct ruuvi_sensor_protocol::SensorValues [−][src]
pub struct SensorValues { pub humidity: Option<u32>, pub temperature: Option<i32>, pub pressure: Option<u32>, pub acceleration: Option<AccelerationVector>, pub battery_potential: Option<u16>, }
Fields
humidity: Option<u32>
Humidity in parts per million
temperature: Option<i32>
temperature in millicelsius
pressure: Option<u32>
pressure in pascals
acceleration: Option<AccelerationVector>
3-dimensional acceleration vector, each component in milli-G
battery_potential: Option<u16>
battery potential in millivolts
Methods
impl SensorValues
[src]
impl SensorValues
pub fn from_manufacturer_specific_data(
id: u16,
value: &[u8]
) -> Result<Self, ParseError>
[src]
pub fn from_manufacturer_specific_data(
id: u16,
value: &[u8]
) -> Result<Self, ParseError>
Trait Implementations
impl Debug for SensorValues
[src]
impl Debug for SensorValues
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for SensorValues
[src]
impl PartialEq for SensorValues
fn eq(&self, other: &SensorValues) -> bool
[src]
fn eq(&self, other: &SensorValues) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &SensorValues) -> bool
[src]
fn ne(&self, other: &SensorValues) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for SensorValues
impl Send for SensorValues
impl Sync for SensorValues
impl Sync for SensorValues