[][src]Enum input_linux::LedKind

#[repr(u16)]pub enum LedKind {
    NumLock,
    CapsLock,
    ScrollLock,
    Compose,
    Kana,
    Sleep,
    Suspend,
    Mute,
    Misc,
    Mail,
    Charging,
    UnknownB,
    UnknownC,
    UnknownD,
    UnknownE,
    UnknownF,
}

LEDs.

Variants

NumLock
CapsLock
ScrollLock
Compose
Kana
Sleep
Suspend
Mute
Misc
Mail
Charging
UnknownB
UnknownC
UnknownD
UnknownE
UnknownF

Implementations

impl LedKind[src]

pub const COUNT: usize[src]

The maximum valid value.

pub fn iter() -> EnumIterator<Self>

Important traits for EnumIterator<T>

impl<T: IterableEnum> Iterator for EnumIterator<T> type Item = T;
[src]

An iterator over all values of the enum.

pub fn bitmask() -> Bitmask<Self>[src]

A bitmask that can contain all values of the enum.

impl LedKind[src]

pub fn from_code(code: u16) -> Result<Self, RangeError>[src]

Instantiates the enum from a raw code value.

Trait Implementations

impl BitmaskTrait for LedKind[src]

type Array = [u8; 2]

The underlying array storage data type.

type Index = LedKind

The type that the bitmask can be indexed by.

impl Clone for LedKind[src]

impl Copy for LedKind[src]

impl Debug for LedKind[src]

impl Eq for LedKind[src]

impl From<LedKind> for u16[src]

impl Hash for LedKind[src]

impl IterableEnum for LedKind[src]

impl Ord for LedKind[src]

impl PartialEq<LedKind> for LedKind[src]

impl PartialOrd<LedKind> for LedKind[src]

impl StructuralEq for LedKind[src]

impl StructuralPartialEq for LedKind[src]

impl TryFrom<u16> for LedKind[src]

type Error = RangeError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for LedKind

impl Send for LedKind

impl Sync for LedKind

impl Unpin for LedKind

impl UnwindSafe for LedKind

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.