Enum input_linux::SwitchKind [−][src]
#[repr(u16)] pub enum SwitchKind {}Show 17 variants
Lid, TabletMode, HeadphoneInsert, RfKillAll, MicrophoneInsert, Dock, LineoutInsert, JackPhysicalInsert, VideoOutInsert, CameraLensCover, KeypadSlide, FrontProximity, RotateLock, LineInInsert, MuteDevice, PenInserted, MachineCover,
Expand description
Switch events.
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
Implementations
pub fn iter() -> EnumIterator<Self>ⓘNotable traits for EnumIterator<T>impl<T: IterableEnum> Iterator for EnumIterator<T> type Item = T;
pub fn iter() -> EnumIterator<Self>ⓘNotable traits for EnumIterator<T>impl<T: IterableEnum> Iterator for EnumIterator<T> type Item = T;
impl<T: IterableEnum> Iterator for EnumIterator<T> type Item = T;
An iterator over all values of the enum.
Instantiates the enum from a raw code value.
Trait Implementations
type Index = SwitchKind
type Index = SwitchKind
The type that the bitmask can be indexed by.
The default empty state of the bitmask.
A representation of the bitmask as a slice of bytes.
A mutable representation of the bitmask as a slice of bytes.
Performs the conversion.
Given an index into the iterator, return the value and the next index. Read more
fn iter() -> EnumIterator<Self>ⓘNotable traits for EnumIterator<T>impl<T: IterableEnum> Iterator for EnumIterator<T> type Item = T;
fn iter() -> EnumIterator<Self>ⓘNotable traits for EnumIterator<T>impl<T: IterableEnum> Iterator for EnumIterator<T> type Item = T;
impl<T: IterableEnum> Iterator for EnumIterator<T> type Item = T;
Instantiates an EnumIterator
for an iterable type.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for SwitchKind
impl Send for SwitchKind
impl Sync for SwitchKind
impl Unpin for SwitchKind
impl UnwindSafe for SwitchKind
Blanket Implementations
Mutably borrows from an owned value. Read more