pub enum BlockingRule {
Disabled = 0,
AccelOver1p5g = 1,
AccelOver1p5gOrHalfSlope = 2,
AccelOver1p5gOrSlope = 3,
}
Expand description
Suppress state changes when the device is in strong motion.
The feature engine can optionally block state transitions if the device is moving too much. This reduces flicker and false positives on vibrating rigs.
Disabled
: never block.AccelOver1p5g
: block if |a| on any axis > 1.5 g.AccelOver1p5gOrHalfSlope
: block if |a| > 1.5 g OR the internal slope estimate exceeds 0.5× the configured slope threshold.AccelOver1p5gOrSlope
: like above, but uses the full slope threshold.
Variants§
Trait Implementations§
Source§impl Clone for BlockingRule
impl Clone for BlockingRule
Source§fn clone(&self) -> BlockingRule
fn clone(&self) -> BlockingRule
Returns a duplicate 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 BlockingRule
impl Debug for BlockingRule
Source§impl From<BlockingRule> for u8
impl From<BlockingRule> for u8
Source§fn from(value: BlockingRule) -> Self
fn from(value: BlockingRule) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BlockingRule
impl PartialEq for BlockingRule
Source§impl TryFrom<u8> for BlockingRule
impl TryFrom<u8> for BlockingRule
impl Copy for BlockingRule
impl Eq for BlockingRule
impl StructuralPartialEq for BlockingRule
Auto Trait Implementations§
impl Freeze for BlockingRule
impl RefUnwindSafe for BlockingRule
impl Send for BlockingRule
impl Sync for BlockingRule
impl Unpin for BlockingRule
impl UnwindSafe for BlockingRule
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