Enum input_linux::LedKind
source · #[repr(u16)]pub enum LedKind {
Show 16 variants
NumLock = 0,
CapsLock = 1,
ScrollLock = 2,
Compose = 3,
Kana = 4,
Sleep = 5,
Suspend = 6,
Mute = 7,
Misc = 8,
Mail = 9,
Charging = 10,
UnknownB = 11,
UnknownC = 12,
UnknownD = 13,
UnknownE = 14,
UnknownF = 15,
}Expand description
LEDs.
Variants§
NumLock = 0
CapsLock = 1
ScrollLock = 2
Compose = 3
Kana = 4
Sleep = 5
Suspend = 6
Mute = 7
Misc = 8
Mail = 9
Charging = 10
UnknownB = 11
UnknownC = 12
UnknownD = 13
UnknownE = 14
UnknownF = 15
Implementations§
Trait Implementations§
source§impl BitmaskTrait for LedKind
impl BitmaskTrait for LedKind
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<'de> Deserialize<'de> for LedKind
impl<'de> Deserialize<'de> for LedKind
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 IterableEnum for LedKind
impl IterableEnum for LedKind
source§impl Ord for LedKind
impl Ord for LedKind
source§impl PartialEq for LedKind
impl PartialEq for LedKind
source§impl PartialOrd for LedKind
impl PartialOrd for LedKind
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 moreimpl Copy for LedKind
impl Eq for LedKind
impl StructuralPartialEq for LedKind
Auto Trait Implementations§
impl Freeze for LedKind
impl RefUnwindSafe for LedKind
impl Send for LedKind
impl Sync for LedKind
impl Unpin for LedKind
impl UnwindSafe for LedKind
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)