pub struct ContinuousHandler<'a, T, E> { /* private fields */ }Expand description
Handler for the continuous mode
Implementations§
Source§impl<'a, T, E> ContinuousHandler<'a, T, E>
impl<'a, T, E> ContinuousHandler<'a, T, E>
Sourcepub fn read_temp(&mut self) -> Result<f32, Error<E>>
pub fn read_temp(&mut self) -> Result<f32, Error<E>>
Read the temperature in celsius, return an error if the value of the temperature is not ready
Sourcepub fn wait_temp(&mut self) -> Result<f32, Error<E>>
pub fn wait_temp(&mut self) -> Result<f32, Error<E>>
Wait for the data to be ready and read the temperature in celsius
Sourcepub fn get_alert(&mut self) -> Result<Alert, Error<E>>
pub fn get_alert(&mut self) -> Result<Alert, Error<E>>
Check if an alert was triggered since the last calll
Sourcepub fn wait_alert(&mut self) -> Result<Alert, Error<E>>
pub fn wait_alert(&mut self) -> Result<Alert, Error<E>>
Wait for an alert to come and return it’s value
Auto Trait Implementations§
impl<'a, T, E> Freeze for ContinuousHandler<'a, T, E>
impl<'a, T, E> RefUnwindSafe for ContinuousHandler<'a, T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<'a, T, E> Send for ContinuousHandler<'a, T, E>
impl<'a, T, E> Sync for ContinuousHandler<'a, T, E>
impl<'a, T, E> Unpin for ContinuousHandler<'a, T, E>
impl<'a, T, E> !UnwindSafe for ContinuousHandler<'a, T, E>
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