pub struct SmartShiftConfig {
pub active: bool,
pub wheel_mode: WheelMode,
pub auto_disengage: u8,
pub torque: u8,
}Expand description
SmartShift status and configuration.
Fields§
§active: boolWhether SmartShift is active (true) or wheel is in fixed mode.
wheel_mode: WheelModeCurrent wheel mode when SmartShift is inactive or as default.
auto_disengage: u8Auto-disengage threshold (1-255, higher = more resistance before free-spin). 0 means use device default.
torque: u8Torque setting for ratchet mode (1-255, higher = stronger detents). 0 means use device default.
Trait Implementations§
Source§impl Clone for SmartShiftConfig
impl Clone for SmartShiftConfig
Source§fn clone(&self) -> SmartShiftConfig
fn clone(&self) -> SmartShiftConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SmartShiftConfig
impl Debug for SmartShiftConfig
Source§impl Default for SmartShiftConfig
impl Default for SmartShiftConfig
Source§impl PartialEq for SmartShiftConfig
impl PartialEq for SmartShiftConfig
impl Copy for SmartShiftConfig
impl Eq for SmartShiftConfig
impl StructuralPartialEq for SmartShiftConfig
Auto Trait Implementations§
impl Freeze for SmartShiftConfig
impl RefUnwindSafe for SmartShiftConfig
impl Send for SmartShiftConfig
impl Sync for SmartShiftConfig
impl Unpin for SmartShiftConfig
impl UnwindSafe for SmartShiftConfig
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