#[non_exhaustive]pub enum DeviceCapability {
Keyboard,
Pointer,
Touch,
TabletTool,
TabletPad,
Gesture,
Switch,
}
Expand description
Capabilities on a device.
A device may have one or more capabilities at a time, capabilities remain static for the lifetime of the device.
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.
Keyboard
Keyboard capability
Pointer
Pointer capability
Touch
Touch capability
TabletTool
TabletTool capability
TabletPad
TabletPad capability
Gesture
Gesture capability
Switch
Switch capability
Trait Implementations§
Source§impl Clone for DeviceCapability
impl Clone for DeviceCapability
Source§fn clone(&self) -> DeviceCapability
fn clone(&self) -> DeviceCapability
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 DeviceCapability
impl Debug for DeviceCapability
Source§impl Hash for DeviceCapability
impl Hash for DeviceCapability
Source§impl PartialEq for DeviceCapability
impl PartialEq for DeviceCapability
impl Copy for DeviceCapability
impl Eq for DeviceCapability
impl StructuralPartialEq for DeviceCapability
Auto Trait Implementations§
impl Freeze for DeviceCapability
impl RefUnwindSafe for DeviceCapability
impl Send for DeviceCapability
impl Sync for DeviceCapability
impl Unpin for DeviceCapability
impl UnwindSafe for DeviceCapability
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