pub struct ExtendedReportRateFeature { /* private fields */ }Expand description
Implements the ExtendedAdjustableReportRate / 0x8061 feature.
Implementations§
Source§impl ExtendedReportRateFeature
impl ExtendedReportRateFeature
Sourcepub async fn get_device_capabilities(
&self,
connection_type: ConnectionType,
) -> Result<ExtendedReportRateList, Hidpp20Error>
pub async fn get_device_capabilities( &self, connection_type: ConnectionType, ) -> Result<ExtendedReportRateList, Hidpp20Error>
Retrieves the report rates supported by connection_type.
Sourcepub async fn get_actual_report_rate_list(
&self,
) -> Result<ExtendedReportRateList, Hidpp20Error>
pub async fn get_actual_report_rate_list( &self, ) -> Result<ExtendedReportRateList, Hidpp20Error>
Retrieves the report rates available for the device’s current connection.
Sourcepub async fn get_report_rate(
&self,
connection_type: ConnectionType,
) -> Result<ExtendedReportRate, Hidpp20Error>
pub async fn get_report_rate( &self, connection_type: ConnectionType, ) -> Result<ExtendedReportRate, Hidpp20Error>
Retrieves the active report rate for connection_type.
Sourcepub async fn set_report_rate(
&self,
report_rate: ExtendedReportRate,
) -> Result<(), Hidpp20Error>
pub async fn set_report_rate( &self, report_rate: ExtendedReportRate, ) -> Result<(), Hidpp20Error>
Sets the report rate for the current host-side connection.
Trait Implementations§
Source§impl Clone for ExtendedReportRateFeature
impl Clone for ExtendedReportRateFeature
Source§fn clone(&self) -> ExtendedReportRateFeature
fn clone(&self) -> ExtendedReportRateFeature
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 ExtendedReportRateFeature
impl CreatableFeature for ExtendedReportRateFeature
Source§const STARTING_VERSION: u8 = 0
const STARTING_VERSION: u8 = 0
The version of the feature the implementation starts to support.
impl Feature for ExtendedReportRateFeature
Auto Trait Implementations§
impl !RefUnwindSafe for ExtendedReportRateFeature
impl !UnwindSafe for ExtendedReportRateFeature
impl Freeze for ExtendedReportRateFeature
impl Send for ExtendedReportRateFeature
impl Sync for ExtendedReportRateFeature
impl Unpin for ExtendedReportRateFeature
impl UnsafeUnpin for ExtendedReportRateFeature
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