#[non_exhaustive]#[repr(u8)]pub enum ReportingMode {
NoChange = 0,
Hid = 1,
Diverted = 2,
}Expand description
How crown events are reported.
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.
NoChange = 0
Leave the setting unchanged (write-only sentinel).
Hid = 1
Events go to the native HID channel.
Diverted = 2
Events are diverted to HID++ (required for CrownEvent).
Trait Implementations§
Source§impl Clone for ReportingMode
impl Clone for ReportingMode
Source§fn clone(&self) -> ReportingMode
fn clone(&self) -> ReportingMode
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 ReportingMode
Source§impl Debug for ReportingMode
impl Debug for ReportingMode
impl Eq for ReportingMode
Source§impl From<ReportingMode> for u8
impl From<ReportingMode> for u8
Source§fn from(enum_value: ReportingMode) -> Self
fn from(enum_value: ReportingMode) -> Self
Converts to this type from the input type.
Source§impl Hash for ReportingMode
impl Hash for ReportingMode
Source§impl PartialEq for ReportingMode
impl PartialEq for ReportingMode
impl StructuralPartialEq for ReportingMode
Source§impl TryFrom<u8> for ReportingMode
impl TryFrom<u8> for ReportingMode
Source§type Error = TryFromPrimitiveError<ReportingMode>
type Error = TryFromPrimitiveError<ReportingMode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ReportingMode
impl TryFromPrimitive for ReportingMode
const NAME: &'static str = "ReportingMode"
type Primitive = u8
type Error = TryFromPrimitiveError<ReportingMode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for ReportingMode
impl RefUnwindSafe for ReportingMode
impl Send for ReportingMode
impl Sync for ReportingMode
impl Unpin for ReportingMode
impl UnsafeUnpin for ReportingMode
impl UnwindSafe for ReportingMode
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