pub enum SensorState {
Idle,
Measuring,
}Expand description
Represents the state of the sensor.
Variants§
Idle
Sensor is in idle state. Either after power-on, a reset or when calling
stop_measurement.
Measuring
Sensor is in measuring state. Entered by calling
start_measurement.
Trait Implementations§
Source§impl Debug for SensorState
impl Debug for SensorState
Source§impl PartialEq for SensorState
impl PartialEq for SensorState
impl StructuralPartialEq for SensorState
Auto Trait Implementations§
impl Freeze for SensorState
impl RefUnwindSafe for SensorState
impl Send for SensorState
impl Sync for SensorState
impl Unpin for SensorState
impl UnwindSafe for SensorState
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