#[non_exhaustive]#[repr(u32)]pub enum AutoActivityDetect {
None = 0,
Running = 1,
Cycling = 2,
Swimming = 4,
Walking = 8,
Elliptical = 32,
Sedentary = 1_024,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl Clone for AutoActivityDetect
impl Clone for AutoActivityDetect
Source§fn clone(&self) -> AutoActivityDetect
fn clone(&self) -> AutoActivityDetect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AutoActivityDetect
impl Debug for AutoActivityDetect
Source§impl Hash for AutoActivityDetect
impl Hash for AutoActivityDetect
Source§impl PartialEq for AutoActivityDetect
impl PartialEq for AutoActivityDetect
Source§fn eq(&self, other: &AutoActivityDetect) -> bool
fn eq(&self, other: &AutoActivityDetect) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AutoActivityDetect
impl Eq for AutoActivityDetect
impl StructuralPartialEq for AutoActivityDetect
Auto Trait Implementations§
impl Freeze for AutoActivityDetect
impl RefUnwindSafe for AutoActivityDetect
impl Send for AutoActivityDetect
impl Sync for AutoActivityDetect
impl Unpin for AutoActivityDetect
impl UnsafeUnpin for AutoActivityDetect
impl UnwindSafe for AutoActivityDetect
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