[−][src]Struct input_linux::LedEvent
An event that indicates whether the specified LED should turn on/off.
Fields
time: EventTime
The timestamp associated with the event.
led: LedKind
The led associated with the event.
value: i32
The state of the led.
Implementations
impl<'a> LedEvent
[src]
pub const fn new(time: EventTime, led: LedKind, value: i32) -> Self
[src]
Creates a new event from the given code and value.
pub unsafe fn from_event<E: AsRef<input_event>>(event: &E) -> &Self
[src]
Reinterpret a generic event without checking for validity.
pub unsafe fn from_event_mut(event: &mut InputEvent) -> &mut Self
[src]
Reinterpret a mutable generic event without checking for validity.
pub fn as_event(&self) -> &InputEvent
[src]
A generic input event reference.
pub unsafe fn as_event_mut(&mut self) -> &mut InputEvent
[src]
A mutable generic input event reference.
Trait Implementations
impl AsRef<InputEvent> for LedEvent
[src]
pub fn as_ref(&self) -> &InputEvent
[src]
impl AsRef<input_event> for LedEvent
[src]
impl Clone for LedEvent
[src]
impl Copy for LedEvent
[src]
impl Debug for LedEvent
[src]
impl Eq for LedEvent
[src]
impl<'a> From<&'a LedEvent> for &'a InputEvent
[src]
impl<'a> From<&'a LedEvent> for InputEvent
[src]
impl<'a> From<&'a LedEvent> for EventRef<'a>
[src]
impl<'a> From<&'a mut LedEvent> for EventMut<'a>
[src]
impl From<LedEvent> for InputEvent
[src]
impl From<LedEvent> for Event
[src]
impl GenericEvent for LedEvent
[src]
pub fn event_kind(&self) -> EventKind
[src]
pub fn time(&self) -> &EventTime
[src]
pub fn code(&self) -> u16
[src]
pub fn value(&self) -> i32
[src]
pub fn from_ref(event: &InputEvent) -> Result<&Self, RangeError>
[src]
pub fn from_mut(event: &mut InputEvent) -> Result<&mut Self, RangeError>
[src]
impl Hash for LedEvent
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for LedEvent
[src]
pub fn cmp(&self, other: &LedEvent) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<LedEvent> for LedEvent
[src]
impl PartialOrd<LedEvent> for LedEvent
[src]
pub fn partial_cmp(&self, other: &LedEvent) -> Option<Ordering>
[src]
pub fn lt(&self, other: &LedEvent) -> bool
[src]
pub fn le(&self, other: &LedEvent) -> bool
[src]
pub fn gt(&self, other: &LedEvent) -> bool
[src]
pub fn ge(&self, other: &LedEvent) -> bool
[src]
impl StructuralEq for LedEvent
[src]
impl StructuralPartialEq for LedEvent
[src]
impl<'a> TryFrom<&'a InputEvent> for &'a LedEvent
[src]
type Error = RangeError
The type returned in the event of a conversion error.
pub fn try_from(event: &'a InputEvent) -> Result<Self, Self::Error>
[src]
impl<'a> TryFrom<&'a mut InputEvent> for &'a mut LedEvent
[src]
type Error = RangeError
The type returned in the event of a conversion error.
pub fn try_from(event: &'a mut InputEvent) -> Result<Self, Self::Error>
[src]
impl TryFrom<InputEvent> for LedEvent
[src]
type Error = RangeError
The type returned in the event of a conversion error.
pub fn try_from(event: InputEvent) -> Result<Self, Self::Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for LedEvent
impl Send for LedEvent
impl Sync for LedEvent
impl Unpin for LedEvent
impl UnwindSafe for LedEvent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,