pub struct ThumbWheelFeature { /* private fields */ }Expand description
Thumb Wheel feature implementation.
Implementations§
Source§impl ThumbWheelFeature
impl ThumbWheelFeature
Sourcepub fn new(device_index: u8, feature_index: u8) -> Self
pub fn new(device_index: u8, feature_index: u8) -> Self
Creates a new thumb wheel feature accessor.
§Arguments
device_index- Device index (0xFF for direct)feature_index- Feature index from root feature discovery
Sourcepub async fn get_info(&self, channel: &HidapiChannel) -> Result<ThumbWheelInfo>
pub async fn get_info(&self, channel: &HidapiChannel) -> Result<ThumbWheelInfo>
Gets thumb wheel hardware information.
Returns resolution, capabilities, and timing information.
§Errors
Returns an error if HID++ communication fails.
Sourcepub async fn get_status(
&self,
channel: &HidapiChannel,
) -> Result<ThumbWheelStatus>
pub async fn get_status( &self, channel: &HidapiChannel, ) -> Result<ThumbWheelStatus>
Sourcepub async fn set_reporting(
&self,
channel: &HidapiChannel,
config: &ThumbWheelConfig,
) -> Result<()>
pub async fn set_reporting( &self, channel: &HidapiChannel, config: &ThumbWheelConfig, ) -> Result<()>
Sourcepub fn parse_event(report: &[u8]) -> Option<ThumbWheelEvent>
pub fn parse_event(report: &[u8]) -> Option<ThumbWheelEvent>
Auto Trait Implementations§
impl Freeze for ThumbWheelFeature
impl RefUnwindSafe for ThumbWheelFeature
impl Send for ThumbWheelFeature
impl Sync for ThumbWheelFeature
impl Unpin for ThumbWheelFeature
impl UnwindSafe for ThumbWheelFeature
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