pub enum SensorMode {
Sleep,
Forced,
Normal,
}
Expand description
Sensor working mode
Variants§
Sleep
Sleep mode
The sensor is not active.
Forced
Forced mode
The sensor takes a single sample and then enters sleep mode.
Normal
Normal mode
The sensor takes samples at regular times, and returns the latest one
when queried.
The time between measurements can be specified as StandbyTime
Trait Implementations§
Source§impl Clone for SensorMode
impl Clone for SensorMode
Source§fn clone(&self) -> SensorMode
fn clone(&self) -> SensorMode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SensorMode
impl Debug for SensorMode
Source§impl Default for SensorMode
impl Default for SensorMode
Source§impl PartialEq for SensorMode
impl PartialEq for SensorMode
impl Copy for SensorMode
impl Eq for SensorMode
impl StructuralPartialEq for SensorMode
Auto Trait Implementations§
impl Freeze for SensorMode
impl RefUnwindSafe for SensorMode
impl Send for SensorMode
impl Sync for SensorMode
impl Unpin for SensorMode
impl UnwindSafe for SensorMode
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