Enum input_linux::UInputKind 
source · #[repr(u16)]
pub enum UInputKind {
    Unknown0,
    ForceFeedbackUpload,
    ForceFeedbackErase,
}Expand description
UInput feedback events.
Variants§
Implementations§
source§impl UInputKind
 
impl UInputKind
source§impl UInputKind
 
impl UInputKind
sourcepub fn from_code(code: u16) -> Result<Self, RangeError>
 
pub fn from_code(code: u16) -> Result<Self, RangeError>
Instantiates the enum from a raw code value.
Trait Implementations§
source§impl BitmaskTrait for UInputKind
 
impl BitmaskTrait for UInputKind
§type Index = UInputKind
 
type Index = UInputKind
The type that the bitmask can be indexed by.
source§fn array_default() -> Self::Array
 
fn array_default() -> Self::Array
The default empty state of the bitmask.
source§fn array_slice(array: &Self::Array) -> &[u8] ⓘ
 
fn array_slice(array: &Self::Array) -> &[u8] ⓘ
A representation of the bitmask as a slice of bytes.
source§impl Clone for UInputKind
 
impl Clone for UInputKind
source§fn clone(&self) -> UInputKind
 
fn clone(&self) -> UInputKind
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 UInputKind
 
impl Debug for UInputKind
source§impl<'de> Deserialize<'de> for UInputKind
 
impl<'de> Deserialize<'de> for UInputKind
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<UInputKind> for u16
 
impl From<UInputKind> for u16
source§fn from(v: UInputKind) -> Self
 
fn from(v: UInputKind) -> Self
Converts to this type from the input type.
source§impl Hash for UInputKind
 
impl Hash for UInputKind
source§impl IterableEnum for UInputKind
 
impl IterableEnum for UInputKind
source§impl Ord for UInputKind
 
impl Ord for UInputKind
source§fn cmp(&self, other: &UInputKind) -> Ordering
 
fn cmp(&self, other: &UInputKind) -> 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<UInputKind> for UInputKind
 
impl PartialEq<UInputKind> for UInputKind
source§fn eq(&self, other: &UInputKind) -> bool
 
fn eq(&self, other: &UInputKind) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl PartialOrd<UInputKind> for UInputKind
 
impl PartialOrd<UInputKind> for UInputKind
source§fn partial_cmp(&self, other: &UInputKind) -> Option<Ordering>
 
fn partial_cmp(&self, other: &UInputKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read more