pub struct PointerMotionScalingFeature { /* private fields */ }Expand description
Implements the PointerMotionScaling / 0x2205 feature.
Implementations§
Source§impl PointerMotionScalingFeature
impl PointerMotionScalingFeature
Sourcepub async fn get_pointer_scaling(&self) -> Result<PointerScaling, Hidpp20Error>
pub async fn get_pointer_scaling(&self) -> Result<PointerScaling, Hidpp20Error>
Retrieves the current scaling (GetPointerScalingValue).
Sourcepub async fn set_pointer_scaling(
&self,
scaling: PointerScaling,
) -> Result<PointerScaling, Hidpp20Error>
pub async fn set_pointer_scaling( &self, scaling: PointerScaling, ) -> Result<PointerScaling, Hidpp20Error>
Requests a new scaling (SetPointerScalingValue) and returns the value
the device echoes. The spec allows firmware to clip the request, so read
the value back when the applied scaling matters.
Trait Implementations§
Source§impl Clone for PointerMotionScalingFeature
impl Clone for PointerMotionScalingFeature
Source§impl CreatableFeature for PointerMotionScalingFeature
impl CreatableFeature for PointerMotionScalingFeature
Source§const STARTING_VERSION: u8 = 0u8
const STARTING_VERSION: u8 = 0u8
The version of the feature the implementation starts to support.
impl Feature for PointerMotionScalingFeature
Auto Trait Implementations§
impl !RefUnwindSafe for PointerMotionScalingFeature
impl !UnwindSafe for PointerMotionScalingFeature
impl Freeze for PointerMotionScalingFeature
impl Send for PointerMotionScalingFeature
impl Sync for PointerMotionScalingFeature
impl Unpin for PointerMotionScalingFeature
impl UnsafeUnpin for PointerMotionScalingFeature
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