pub struct Gestures2Feature { /* private fields */ }Expand description
Typed accessor for legacy Gestures2 descriptor discovery.
Implementations§
Source§impl Gestures2Feature
impl Gestures2Feature
Sourcepub async fn thumbwheel(
&self,
) -> Result<Option<ThumbwheelGesture>, Hidpp20Error>
pub async fn thumbwheel( &self, ) -> Result<Option<ThumbwheelGesture>, Hidpp20Error>
Find gesture id 46 (Thumbwheel) and its diversion index. Merely exposing
0x6501 is not enough: touchpads and other gesture devices can expose
the feature without a thumb wheel.
Sourcepub async fn has_thumbwheel(&self) -> Result<bool, Hidpp20Error>
pub async fn has_thumbwheel(&self) -> Result<bool, Hidpp20Error>
Return whether this device’s descriptor table contains gesture id 46.
Sourcepub async fn thumbwheel_diverted(&self) -> Result<Option<bool>, Hidpp20Error>
pub async fn thumbwheel_diverted(&self) -> Result<Option<bool>, Hidpp20Error>
Read the current diversion state for gesture id 46. None means the
thumb wheel is absent or present but not divertable.
Sourcepub async fn set_thumbwheel_diverted(
&self,
diverted: bool,
) -> Result<bool, Hidpp20Error>
pub async fn set_thumbwheel_diverted( &self, diverted: bool, ) -> Result<bool, Hidpp20Error>
Divert or restore gesture id 46. Returns false when the thumb wheel is
absent or not divertable. Function 4 is the 0x40 Gestures2 diversion
write; its four-byte body requires a long HID++ report.
Trait Implementations§
Source§impl Clone for Gestures2Feature
impl Clone for Gestures2Feature
Source§fn clone(&self) -> Gestures2Feature
fn clone(&self) -> Gestures2Feature
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 Gestures2Feature
impl CreatableFeature for Gestures2Feature
Source§const STARTING_VERSION: u8 = 0
const STARTING_VERSION: u8 = 0
The version of the feature the implementation starts to support.
impl Feature for Gestures2Feature
Auto Trait Implementations§
impl !RefUnwindSafe for Gestures2Feature
impl !UnwindSafe for Gestures2Feature
impl Freeze for Gestures2Feature
impl Send for Gestures2Feature
impl Sync for Gestures2Feature
impl Unpin for Gestures2Feature
impl UnsafeUnpin for Gestures2Feature
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