pub enum FeatureBlockingMode {
Disabled = 0,
AccelOver1p5g = 1,
AccelOver1p5gOrHalfSlope = 2,
AccelOver1p5gOrFullSlope = 3,
}Expand description
Shared blocking behavior used by flat and orientation detection.
Variants§
Disabled = 0
Do not block state changes during large movements.
AccelOver1p5g = 1
Block when acceleration on any axis exceeds 1.5g.
AccelOver1p5gOrHalfSlope = 2
Block when acceleration exceeds 1.5g or slope exceeds half of the
configured slope threshold.
AccelOver1p5gOrFullSlope = 3
Block when acceleration exceeds 1.5g or slope exceeds the configured
slope threshold.
Trait Implementations§
Source§impl Clone for FeatureBlockingMode
impl Clone for FeatureBlockingMode
Source§fn clone(&self) -> FeatureBlockingMode
fn clone(&self) -> FeatureBlockingMode
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 FeatureBlockingMode
impl Debug for FeatureBlockingMode
Source§impl Format for FeatureBlockingMode
impl Format for FeatureBlockingMode
Source§impl PartialEq for FeatureBlockingMode
impl PartialEq for FeatureBlockingMode
impl Copy for FeatureBlockingMode
impl Eq for FeatureBlockingMode
impl StructuralPartialEq for FeatureBlockingMode
Auto Trait Implementations§
impl Freeze for FeatureBlockingMode
impl RefUnwindSafe for FeatureBlockingMode
impl Send for FeatureBlockingMode
impl Sync for FeatureBlockingMode
impl Unpin for FeatureBlockingMode
impl UnsafeUnpin for FeatureBlockingMode
impl UnwindSafe for FeatureBlockingMode
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