Enum State
#[repr(u8)]pub enum State {
Uninitialized = 0,
Disabled = 1,
Enabled = 2,
Measuring = 3,
Sleeping = 4,
}Available on crate feature
sensors only.Expand description
State of a sensor driver.
Variants§
Uninitialized = 0
The sensor driver is uninitialized. It has not been initialized yet, or initialization could not succeed.
Disabled = 1
The sensor driver is disabled.
Enabled = 2
The sensor driver is enabled.
Measuring = 3
The sensor driver is enabled and a measurement has been triggered.
Sleeping = 4
The sensor driver is sleeping.
Trait Implementations§
impl Copy for State
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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