pub enum InterruptMode {
Disabled,
OnDataReady,
OnThresholdCrossed,
}
Expand description
Interrupt generation modes.
Variants§
Disabled
Disable interrupt generation
OnDataReady
Generate an interrupt every time there is new data ready.
OnThresholdCrossed
Generate an interrupt if the measurement crosses a threshold by more
than 50 ppm. (See set_eco2_thresholds()
).
Trait Implementations§
Source§impl Clone for InterruptMode
impl Clone for InterruptMode
Source§fn clone(&self) -> InterruptMode
fn clone(&self) -> InterruptMode
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 InterruptMode
impl Debug for InterruptMode
Source§impl PartialEq for InterruptMode
impl PartialEq for InterruptMode
impl Copy for InterruptMode
impl StructuralPartialEq for InterruptMode
Auto Trait Implementations§
impl Freeze for InterruptMode
impl RefUnwindSafe for InterruptMode
impl Send for InterruptMode
impl Sync for InterruptMode
impl Unpin for InterruptMode
impl UnwindSafe for InterruptMode
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