[−][src]Struct mynewt::hw::sensor::SensorValue
Represents a decoded sensor data value. Since temperature may be integer (raw) or float (computed), we use the struct to return both integer and float values.
Fields
key: &'static Strn
Null-terminated string for the key. t
for raw temp, tmp
for computed. When transmitted to CoAP Server or Collector Node, the key (field name) to be used.
value: SensorValueType
The type of the sensor value and the value.
geo: SensorValueType
Geolocation associated with the sensor value.
Trait Implementations
impl Clone for SensorValue
[src]
fn clone(&self) -> SensorValue
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SensorValue
[src]
impl Default for SensorValue
[src]
Default sensor value is None
fn default() -> SensorValue
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,