#[non_exhaustive]#[repr(u8)]pub enum ActivityState {
Inactive = 0,
Start = 1,
Active = 2,
Stop = 3,
}Expand description
Proximity or touch activity phase reported in a CrownUpdate.
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.
Trait Implementations§
Source§impl Clone for ActivityState
impl Clone for ActivityState
Source§fn clone(&self) -> ActivityState
fn clone(&self) -> ActivityState
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 moreimpl Copy for ActivityState
Source§impl Debug for ActivityState
impl Debug for ActivityState
impl Eq for ActivityState
Source§impl From<ActivityState> for u8
impl From<ActivityState> for u8
Source§fn from(enum_value: ActivityState) -> Self
fn from(enum_value: ActivityState) -> Self
Converts to this type from the input type.
Source§impl Hash for ActivityState
impl Hash for ActivityState
Source§impl PartialEq for ActivityState
impl PartialEq for ActivityState
impl StructuralPartialEq for ActivityState
Source§impl TryFrom<u8> for ActivityState
impl TryFrom<u8> for ActivityState
Source§type Error = TryFromPrimitiveError<ActivityState>
type Error = TryFromPrimitiveError<ActivityState>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ActivityState
impl TryFromPrimitive for ActivityState
const NAME: &'static str = "ActivityState"
type Primitive = u8
type Error = TryFromPrimitiveError<ActivityState>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for ActivityState
impl RefUnwindSafe for ActivityState
impl Send for ActivityState
impl Sync for ActivityState
impl Unpin for ActivityState
impl UnsafeUnpin for ActivityState
impl UnwindSafe for ActivityState
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