#[non_exhaustive]#[repr(u8)]pub enum ExtendedReportRate {
Hz125 = 0,
Hz250 = 1,
Hz500 = 2,
Hz1000 = 3,
Hz2000 = 4,
Hz4000 = 5,
Hz8000 = 6,
}Expand description
A concrete report-rate setting for 0x8061.
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.
Hz125 = 0
125 Hz, equivalent to an 8 ms report interval.
Hz250 = 1
250 Hz, equivalent to a 4 ms report interval.
Hz500 = 2
500 Hz, equivalent to a 2 ms report interval.
Hz1000 = 3
1000 Hz, equivalent to a 1 ms report interval.
Hz2000 = 4
2000 Hz, equivalent to a 500 µs report interval.
Hz4000 = 5
4000 Hz, equivalent to a 250 µs report interval.
Hz8000 = 6
8000 Hz, equivalent to a 125 µs report interval.
Trait Implementations§
Source§impl Clone for ExtendedReportRate
impl Clone for ExtendedReportRate
Source§fn clone(&self) -> ExtendedReportRate
fn clone(&self) -> ExtendedReportRate
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 ExtendedReportRate
Source§impl Debug for ExtendedReportRate
impl Debug for ExtendedReportRate
impl Eq for ExtendedReportRate
Source§impl From<ExtendedReportRate> for u8
impl From<ExtendedReportRate> for u8
Source§fn from(enum_value: ExtendedReportRate) -> Self
fn from(enum_value: ExtendedReportRate) -> Self
Converts to this type from the input type.
Source§impl Hash for ExtendedReportRate
impl Hash for ExtendedReportRate
Source§impl PartialEq for ExtendedReportRate
impl PartialEq for ExtendedReportRate
impl StructuralPartialEq for ExtendedReportRate
Source§impl TryFrom<u8> for ExtendedReportRate
impl TryFrom<u8> for ExtendedReportRate
Source§type Error = TryFromPrimitiveError<ExtendedReportRate>
type Error = TryFromPrimitiveError<ExtendedReportRate>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ExtendedReportRate
impl TryFromPrimitive for ExtendedReportRate
const NAME: &'static str = "ExtendedReportRate"
type Primitive = u8
type Error = TryFromPrimitiveError<ExtendedReportRate>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for ExtendedReportRate
impl RefUnwindSafe for ExtendedReportRate
impl Send for ExtendedReportRate
impl Sync for ExtendedReportRate
impl Unpin for ExtendedReportRate
impl UnsafeUnpin for ExtendedReportRate
impl UnwindSafe for ExtendedReportRate
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