pub struct Reading { /* private fields */ }Expand description
A reading consisting of temperature (in °C) and CO₂ concentration (in ppm) values.
§Example
let sensor = Sensor::open_default()?;
let reading = sensor.read()?;
println!("{} °C, {} ppm CO₂", reading.temperature(), reading.co2());Implementations§
Trait Implementations§
Source§impl PartialOrd for Reading
impl PartialOrd for Reading
impl StructuralPartialEq for Reading
Auto Trait Implementations§
impl Freeze for Reading
impl RefUnwindSafe for Reading
impl Send for Reading
impl Sync for Reading
impl Unpin for Reading
impl UnwindSafe for Reading
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