pub enum DeviceEvents {
Always,
WhenFocused,
Never,
}
Expand description
Control when device events are captured.
Variants§
Always
Report device events regardless of window focus.
WhenFocused
Only capture device events while the window is focused.
Never
Never capture device events.
Trait Implementations§
Source§impl Clone for DeviceEvents
impl Clone for DeviceEvents
Source§fn clone(&self) -> DeviceEvents
fn clone(&self) -> DeviceEvents
Returns a copy 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 DeviceEvents
impl Debug for DeviceEvents
Source§impl Default for DeviceEvents
impl Default for DeviceEvents
Source§fn default() -> DeviceEvents
fn default() -> DeviceEvents
Returns the “default value” for a type. Read more
Source§impl Hash for DeviceEvents
impl Hash for DeviceEvents
Source§impl Ord for DeviceEvents
impl Ord for DeviceEvents
Source§fn cmp(&self, other: &DeviceEvents) -> Ordering
fn cmp(&self, other: &DeviceEvents) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DeviceEvents
impl PartialEq for DeviceEvents
Source§impl PartialOrd for DeviceEvents
impl PartialOrd for DeviceEvents
impl Copy for DeviceEvents
impl Eq for DeviceEvents
impl StructuralPartialEq for DeviceEvents
Auto Trait Implementations§
impl Freeze for DeviceEvents
impl RefUnwindSafe for DeviceEvents
impl Send for DeviceEvents
impl Sync for DeviceEvents
impl Unpin for DeviceEvents
impl UnwindSafe for DeviceEvents
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