pub struct ReportRateFeature { /* private fields */ }Expand description
Implements the ReportRate / 0x8060 feature.
Implementations§
Source§impl ReportRateFeature
impl ReportRateFeature
Sourcepub async fn get_report_rate_list(&self) -> Result<ReportRateList, Hidpp20Error>
pub async fn get_report_rate_list(&self) -> Result<ReportRateList, Hidpp20Error>
Retrieves the supported report intervals in milliseconds.
Sourcepub async fn get_report_rate(&self) -> Result<u8, Hidpp20Error>
pub async fn get_report_rate(&self) -> Result<u8, Hidpp20Error>
Retrieves the active report interval in milliseconds.
Sourcepub async fn set_report_rate(
&self,
report_rate_ms: u8,
) -> Result<(), Hidpp20Error>
pub async fn set_report_rate( &self, report_rate_ms: u8, ) -> Result<(), Hidpp20Error>
Sets the active report interval in milliseconds.
Devices reject unsupported intervals with InvalidArgument.
Trait Implementations§
Source§impl Clone for ReportRateFeature
impl Clone for ReportRateFeature
Source§fn clone(&self) -> ReportRateFeature
fn clone(&self) -> ReportRateFeature
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 CreatableFeature for ReportRateFeature
impl CreatableFeature for ReportRateFeature
Source§const STARTING_VERSION: u8 = 0
const STARTING_VERSION: u8 = 0
The version of the feature the implementation starts to support.
impl Feature for ReportRateFeature
Auto Trait Implementations§
impl !RefUnwindSafe for ReportRateFeature
impl !UnwindSafe for ReportRateFeature
impl Freeze for ReportRateFeature
impl Send for ReportRateFeature
impl Sync for ReportRateFeature
impl Unpin for ReportRateFeature
impl UnsafeUnpin for ReportRateFeature
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