pub struct SensorData {
pub object_voltage: i16,
pub ambient_temperature: i16,
}Expand description
Data as read from the sensor.
These values can be used to calculate the object temperature as done in
read_object_temperature().
Fields§
§object_voltage: i16Object voltage: [-32768..32767]
ambient_temperature: i16Ambient temperature: [-8192..8191]
Trait Implementations§
Source§impl Clone for SensorData
impl Clone for SensorData
Source§fn clone(&self) -> SensorData
fn clone(&self) -> SensorData
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 SensorData
impl Debug for SensorData
Source§impl Default for SensorData
impl Default for SensorData
Source§fn default() -> SensorData
fn default() -> SensorData
Returns the “default value” for a type. Read more
Source§impl Hash for SensorData
impl Hash for SensorData
Source§impl PartialEq for SensorData
impl PartialEq for SensorData
impl Copy for SensorData
impl Eq for SensorData
impl StructuralPartialEq for SensorData
Auto Trait Implementations§
impl Freeze for SensorData
impl RefUnwindSafe for SensorData
impl Send for SensorData
impl Sync for SensorData
impl Unpin for SensorData
impl UnwindSafe for SensorData
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