pub struct SmartShiftEnhancedFeature { /* private fields */ }Expand description
Implements the SmartShiftWheelEnhanced / 0x2111 feature.
Implementations§
Source§impl SmartShiftEnhancedFeature
impl SmartShiftEnhancedFeature
Sourcepub async fn get_capabilities(
&self,
) -> Result<SmartShiftEnhancedInfo, Hidpp20Error>
pub async fn get_capabilities( &self, ) -> Result<SmartShiftEnhancedInfo, Hidpp20Error>
Retrieves enhanced SmartShift capabilities and defaults.
Sourcepub async fn get_ratchet_control_mode(
&self,
) -> Result<SmartShiftEnhancedStatus, Hidpp20Error>
pub async fn get_ratchet_control_mode( &self, ) -> Result<SmartShiftEnhancedStatus, Hidpp20Error>
Retrieves the current enhanced SmartShift ratchet control mode.
Sourcepub async fn set_ratchet_control_mode(
&self,
change: SmartShiftEnhancedStatusChange,
) -> Result<SmartShiftEnhancedStatus, Hidpp20Error>
pub async fn set_ratchet_control_mode( &self, change: SmartShiftEnhancedStatusChange, ) -> Result<SmartShiftEnhancedStatus, Hidpp20Error>
Sets selected enhanced SmartShift fields and returns the resulting status.
A None field is encoded as 0, the documented “do not change” value.
Trait Implementations§
Source§impl Clone for SmartShiftEnhancedFeature
impl Clone for SmartShiftEnhancedFeature
Source§fn clone(&self) -> SmartShiftEnhancedFeature
fn clone(&self) -> SmartShiftEnhancedFeature
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 SmartShiftEnhancedFeature
impl CreatableFeature for SmartShiftEnhancedFeature
Source§const STARTING_VERSION: u8 = 0
const STARTING_VERSION: u8 = 0
The version of the feature the implementation starts to support.
impl Feature for SmartShiftEnhancedFeature
Auto Trait Implementations§
impl !RefUnwindSafe for SmartShiftEnhancedFeature
impl !UnwindSafe for SmartShiftEnhancedFeature
impl Freeze for SmartShiftEnhancedFeature
impl Send for SmartShiftEnhancedFeature
impl Sync for SmartShiftEnhancedFeature
impl Unpin for SmartShiftEnhancedFeature
impl UnsafeUnpin for SmartShiftEnhancedFeature
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