#[non_exhaustive]pub struct RatchetControlMode {
pub wheel_mode: WheelMode,
pub auto_disengage: u8,
pub auto_disengage_default: u8,
}Expand description
Represents the ratchet control mode of the mouse wheel.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.wheel_mode: WheelModeThe mode the wheel is currently set to.
This does not reflect the automatic disengage state.
auto_disengage: u8The amount of quarter-turns per second it takes for the wheel to automatically disengage.
If this value is 0xff, the wheel will not disengage automatically.
auto_disengage_default: u8The default value of Self::auto_disengage.
Trait Implementations§
Source§impl Clone for RatchetControlMode
impl Clone for RatchetControlMode
Source§fn clone(&self) -> RatchetControlMode
fn clone(&self) -> RatchetControlMode
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 Debug for RatchetControlMode
impl Debug for RatchetControlMode
Source§impl Hash for RatchetControlMode
impl Hash for RatchetControlMode
Source§impl PartialEq for RatchetControlMode
impl PartialEq for RatchetControlMode
Source§fn eq(&self, other: &RatchetControlMode) -> bool
fn eq(&self, other: &RatchetControlMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RatchetControlMode
impl Eq for RatchetControlMode
impl StructuralPartialEq for RatchetControlMode
Auto Trait Implementations§
impl Freeze for RatchetControlMode
impl RefUnwindSafe for RatchetControlMode
impl Send for RatchetControlMode
impl Sync for RatchetControlMode
impl Unpin for RatchetControlMode
impl UnsafeUnpin for RatchetControlMode
impl UnwindSafe for RatchetControlMode
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