Enum input_linux::SwitchKind [] [src]

#[repr(u16)]
pub enum SwitchKind { Lid, TabletMode, HeadphoneInsert, RfKillAll, MicrophoneInsert, Dock, LineoutInsert, JackPhysicalInsert, VideoOutInsert, CameraLensCover, KeypadSlide, FrontProximity, RotateLock, LineInInsert, MuteDevice, PenInserted, }

Variants

set = lid shut

set = tablet mode

set = inserted

set = radio enabled

set = inserted

set = plugged into dock

set = inserted

set = mechanical switch set

set = inserted

set = lens covered

set = keypad slide out

set = front proximity sensor active

set = rotate locked/disabled

set = inserted

set = device disabled

set = pen inserted

Methods

impl SwitchKind
[src]

COUNT: usize = sys::SW_CNT as usize

Important traits for EnumIterator<T>
[src]

[src]

impl SwitchKind
[src]

[src]

Trait Implementations

impl Copy for SwitchKind
[src]

impl Clone for SwitchKind
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialOrd for SwitchKind
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for SwitchKind
[src]

[src]

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialEq for SwitchKind
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for SwitchKind
[src]

impl Hash for SwitchKind
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for SwitchKind
[src]

[src]

Formats the value using the given formatter. Read more

impl BitmaskTrait for SwitchKind
[src]

[src]

Important traits for &'a mut [u8]
[src]

Important traits for &'a mut [u8]
[src]

[src]

[src]

impl IterableEnum for SwitchKind
[src]

[src]

Important traits for EnumIterator<T>
[src]

impl From<SwitchKind> for u16
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for SwitchKind

impl Sync for SwitchKind