pub struct SmartShiftStatus {
pub mode: SmartShiftMode,
pub auto_disengage: u8,
pub tunable_torque: u8,
}Expand description
Snapshot returned from SmartShiftFeatureV0::get_status.
Crosses the agent↔GUI IPC (read_smartshift), so field order is wire
format — changes require a PROTOCOL_VERSION bump (guarded by
openlogi-agent-core/tests/wire_format.rs).
Fields§
§mode: SmartShiftMode§auto_disengage: u8SmartShift speed threshold: 0x01–0xFE in 0.25 turn/s steps (higher
= harder to flip into free-spin while scrolling; Logitech defaults to
~16 on the MX line), or AUTO_DISENGAGE_PERMANENT for a permanently
engaged ratchet.
tunable_torque: u8Tunable-torque force as a percentage (1–100) of the device’s max
force, or 0 when the device doesn’t support tunable torque. Read back
and re-sent unchanged so adjusting the mode or threshold doesn’t
disturb the wheel’s resistance.
Trait Implementations§
Source§impl Clone for SmartShiftStatus
impl Clone for SmartShiftStatus
Source§fn clone(&self) -> SmartShiftStatus
fn clone(&self) -> SmartShiftStatus
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 moreimpl Copy for SmartShiftStatus
Source§impl Debug for SmartShiftStatus
impl Debug for SmartShiftStatus
Source§impl<'de> Deserialize<'de> for SmartShiftStatus
impl<'de> Deserialize<'de> for SmartShiftStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SmartShiftStatus
Source§impl PartialEq for SmartShiftStatus
impl PartialEq for SmartShiftStatus
Source§fn eq(&self, other: &SmartShiftStatus) -> bool
fn eq(&self, other: &SmartShiftStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SmartShiftStatus
impl Serialize for SmartShiftStatus
impl StructuralPartialEq for SmartShiftStatus
Auto Trait Implementations§
impl Freeze for SmartShiftStatus
impl RefUnwindSafe for SmartShiftStatus
impl Send for SmartShiftStatus
impl Sync for SmartShiftStatus
impl Unpin for SmartShiftStatus
impl UnsafeUnpin for SmartShiftStatus
impl UnwindSafe for SmartShiftStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.