pub enum ProximityState {
Out,
In,
}
Expand description
The state of proximity for a tool on a device.
The proximity of a tool is a binary state signalling whether the tool is within a detectable distance of the tablet device. A tool that is out of proximity cannot generate events.
On some hardware a tool goes out of proximity when it ceases to touch the surface. On /// other hardware, the tool is still detectable within a short distance (a few cm) off the surface.
Variants§
Trait Implementations§
Source§impl Clone for ProximityState
impl Clone for ProximityState
Source§fn clone(&self) -> ProximityState
fn clone(&self) -> ProximityState
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 ProximityState
impl Debug for ProximityState
Source§impl Hash for ProximityState
impl Hash for ProximityState
Source§impl PartialEq for ProximityState
impl PartialEq for ProximityState
impl Copy for ProximityState
impl Eq for ProximityState
impl StructuralPartialEq for ProximityState
Auto Trait Implementations§
impl Freeze for ProximityState
impl RefUnwindSafe for ProximityState
impl Send for ProximityState
impl Sync for ProximityState
impl Unpin for ProximityState
impl UnwindSafe for ProximityState
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