pub struct Reading { /* private fields */ }
Expand description
A single air quality sensor reading
Implementations§
source§impl Reading
impl Reading
sourcepub fn env_pm1(&self) -> u16
pub fn env_pm1(&self) -> u16
Returns the environmental PM1 concentration in µg/m³
Note that some devices do not support this reading and will return garbage data for this value.
sourcepub fn env_pm2_5(&self) -> u16
pub fn env_pm2_5(&self) -> u16
Returns the environmental PM2.5 concentration in µg/m³
Note that some devices do not support this reading and will return garbage data for this value.
sourcepub fn env_pm10(&self) -> u16
pub fn env_pm10(&self) -> u16
Returns the environmental PM10 concentration in µg/m³
Note that some devices do not support this reading and will return garbage data for this value.
sourcepub fn particles_0_3(&self) -> u16
pub fn particles_0_3(&self) -> u16
Returns count of particles smaller than 0.3µm
sourcepub fn particles_0_5(&self) -> u16
pub fn particles_0_5(&self) -> u16
Returns count of particles smaller than 0.5µm
sourcepub fn particles_1(&self) -> u16
pub fn particles_1(&self) -> u16
Returns count of particles smaller than 1µm
sourcepub fn particles_2_5(&self) -> u16
pub fn particles_2_5(&self) -> u16
Returns count of particles smaller than 2.5µm
sourcepub fn particles_5(&self) -> u16
pub fn particles_5(&self) -> u16
Returns count of particles smaller than 5µm
sourcepub fn particles_10(&self) -> u16
pub fn particles_10(&self) -> u16
Returns count of particles smaller than 10µm
Trait Implementations§
Auto Trait Implementations§
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