#[non_exhaustive]#[repr(u32)]pub enum TrackingMode {
None = 0,
X10 = 1,
Normal = 2,
Button = 3,
Any = 4,
}Expand description
Mouse tracking mode.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None = 0
Mouse reporting disabled.
X10 = 1
X10 mouse mode.
Normal = 2
Normal mouse mode (press/release only).
Button = 3
Button-event tracking mode.
Any = 4
Any-event tracking mode.
Trait Implementations§
Source§impl Clone for TrackingMode
impl Clone for TrackingMode
Source§fn clone(&self) -> TrackingMode
fn clone(&self) -> TrackingMode
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 TrackingMode
impl Debug for TrackingMode
Source§impl From<TrackingMode> for u32
impl From<TrackingMode> for u32
Source§fn from(v: TrackingMode) -> Self
fn from(v: TrackingMode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TrackingMode
impl PartialEq for TrackingMode
Source§impl TryFrom<u32> for TrackingMode
impl TryFrom<u32> for TrackingMode
impl Copy for TrackingMode
impl Eq for TrackingMode
impl StructuralPartialEq for TrackingMode
Auto Trait Implementations§
impl Freeze for TrackingMode
impl RefUnwindSafe for TrackingMode
impl Send for TrackingMode
impl Sync for TrackingMode
impl Unpin for TrackingMode
impl UnsafeUnpin for TrackingMode
impl UnwindSafe for TrackingMode
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