pub struct Sensors<'a> {
pub bus: &'a Bus,
}
Expand description
Communicates with the main sensors on the MATRIX Creator.
Fields§
§bus: &'a Bus
Implementations§
Source§impl<'a> Sensors<'a>
impl<'a> Sensors<'a>
Sourcepub fn read_pressure(&self) -> Pressure
pub fn read_pressure(&self) -> Pressure
Return the latest Pressure sensor values.
Sourcepub fn read_humidity(&self) -> Humidity
pub fn read_humidity(&self) -> Humidity
Return the latest Humidity sensor values.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Sensors<'a>
impl<'a> RefUnwindSafe for Sensors<'a>
impl<'a> Send for Sensors<'a>
impl<'a> Sync for Sensors<'a>
impl<'a> Unpin for Sensors<'a>
impl<'a> UnwindSafe for Sensors<'a>
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