pub struct RawMeasurement {
pub temperature: i32,
pub pressure: i32,
pub humidity: i32,
}Expand description
The raw, uncompensated readings from the BME280 data registers.
Fields§
§temperature: i32The 20-bit uncompensated temperature.
pressure: i32The 20-bit uncompensated pressure.
humidity: i32The 16-bit uncompensated humidity.
Implementations§
Source§impl RawMeasurement
impl RawMeasurement
Sourcepub fn from_registers(data: &[u8; 8]) -> RawMeasurement
pub fn from_registers(data: &[u8; 8]) -> RawMeasurement
Trait Implementations§
Source§impl Clone for RawMeasurement
impl Clone for RawMeasurement
Source§fn clone(&self) -> RawMeasurement
fn clone(&self) -> RawMeasurement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RawMeasurement
Source§impl Debug for RawMeasurement
impl Debug for RawMeasurement
impl Eq for RawMeasurement
Source§impl PartialEq for RawMeasurement
impl PartialEq for RawMeasurement
Source§fn eq(&self, other: &RawMeasurement) -> bool
fn eq(&self, other: &RawMeasurement) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RawMeasurement
Auto Trait Implementations§
impl Freeze for RawMeasurement
impl RefUnwindSafe for RawMeasurement
impl Send for RawMeasurement
impl Sync for RawMeasurement
impl Unpin for RawMeasurement
impl UnsafeUnpin for RawMeasurement
impl UnwindSafe for RawMeasurement
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