Enum input_linux::EventMut
[−]
[src]
pub enum EventMut<'a> { Synchronize(&'a mut SynchronizeEvent), Key(&'a mut KeyEvent), Relative(&'a mut RelativeEvent), Absolute(&'a mut AbsoluteEvent), Switch(&'a mut SwitchEvent), Misc(&'a mut MiscEvent), Led(&'a mut LedEvent), Autorepeat(&'a mut AutorepeatEvent), Sound(&'a mut SoundEvent), UInput(&'a mut UInputEvent), Unknown(&'a mut InputEvent), }
Variants
Synchronize(&'a mut SynchronizeEvent)
Key(&'a mut KeyEvent)
Relative(&'a mut RelativeEvent)
Absolute(&'a mut AbsoluteEvent)
Switch(&'a mut SwitchEvent)
Misc(&'a mut MiscEvent)
Led(&'a mut LedEvent)
Autorepeat(&'a mut AutorepeatEvent)
Sound(&'a mut SoundEvent)
UInput(&'a mut UInputEvent)
Unknown(&'a mut InputEvent)
Methods
impl<'a> EventMut<'a>
[src]
pub fn new(event: &'a mut InputEvent) -> Result<Self, RangeError>
[src]
Trait Implementations
impl<'a> PartialEq for EventMut<'a>
[src]
fn eq(&self, __arg_0: &EventMut<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &EventMut<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> Eq for EventMut<'a>
[src]
impl<'a> Hash for EventMut<'a>
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<'a> Debug for EventMut<'a>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> From<&'a mut SynchronizeEvent> for EventMut<'a>
[src]
fn from(event: &'a mut SynchronizeEvent) -> Self
[src]
Performs the conversion.
impl<'a> From<&'a mut KeyEvent> for EventMut<'a>
[src]
impl<'a> From<&'a mut RelativeEvent> for EventMut<'a>
[src]
fn from(event: &'a mut RelativeEvent) -> Self
[src]
Performs the conversion.
impl<'a> From<&'a mut AbsoluteEvent> for EventMut<'a>
[src]
fn from(event: &'a mut AbsoluteEvent) -> Self
[src]
Performs the conversion.
impl<'a> From<&'a mut SwitchEvent> for EventMut<'a>
[src]
fn from(event: &'a mut SwitchEvent) -> Self
[src]
Performs the conversion.
impl<'a> From<&'a mut MiscEvent> for EventMut<'a>
[src]
impl<'a> From<&'a mut LedEvent> for EventMut<'a>
[src]
impl<'a> From<&'a mut AutorepeatEvent> for EventMut<'a>
[src]
fn from(event: &'a mut AutorepeatEvent) -> Self
[src]
Performs the conversion.
impl<'a> From<&'a mut SoundEvent> for EventMut<'a>
[src]
fn from(event: &'a mut SoundEvent) -> Self
[src]
Performs the conversion.
impl<'a> From<&'a mut UInputEvent> for EventMut<'a>
[src]
fn from(event: &'a mut UInputEvent) -> Self
[src]
Performs the conversion.
impl<'a> From<&'a mut Event> for EventMut<'a>
[src]
impl<'a> From<&'a EventMut<'a>> for &'a InputEvent
[src]
impl<'a> AsRef<InputEvent> for EventMut<'a>
[src]
fn as_ref(&self) -> &InputEvent
[src]
Performs the conversion.