Enum input_linux::EventMut
source · 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),
}
Expand description
A mutable reference to an input event.
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)
Unknown event type.
Implementations§
source§impl<'a> EventMut<'a>
impl<'a> EventMut<'a>
sourcepub fn new(event: &'a mut InputEvent) -> Result<Self, RangeError>
pub fn new(event: &'a mut InputEvent) -> Result<Self, RangeError>
Wraps the generic InputEvent
into a mutable event.
Trait Implementations§
source§impl<'a> AsRef<InputEvent> for EventMut<'a>
impl<'a> AsRef<InputEvent> for EventMut<'a>
source§fn as_ref(&self) -> &InputEvent
fn as_ref(&self) -> &InputEvent
Converts this type into a shared reference of the (usually inferred) input type.
source§impl<'a> From<&'a EventMut<'a>> for &'a InputEvent
impl<'a> From<&'a EventMut<'a>> for &'a InputEvent
source§impl<'a> From<&'a mut AbsoluteEvent> for EventMut<'a>
impl<'a> From<&'a mut AbsoluteEvent> for EventMut<'a>
source§fn from(event: &'a mut AbsoluteEvent) -> Self
fn from(event: &'a mut AbsoluteEvent) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a mut AutorepeatEvent> for EventMut<'a>
impl<'a> From<&'a mut AutorepeatEvent> for EventMut<'a>
source§fn from(event: &'a mut AutorepeatEvent) -> Self
fn from(event: &'a mut AutorepeatEvent) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a mut RelativeEvent> for EventMut<'a>
impl<'a> From<&'a mut RelativeEvent> for EventMut<'a>
source§fn from(event: &'a mut RelativeEvent) -> Self
fn from(event: &'a mut RelativeEvent) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a mut SoundEvent> for EventMut<'a>
impl<'a> From<&'a mut SoundEvent> for EventMut<'a>
source§fn from(event: &'a mut SoundEvent) -> Self
fn from(event: &'a mut SoundEvent) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a mut SwitchEvent> for EventMut<'a>
impl<'a> From<&'a mut SwitchEvent> for EventMut<'a>
source§fn from(event: &'a mut SwitchEvent) -> Self
fn from(event: &'a mut SwitchEvent) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a mut SynchronizeEvent> for EventMut<'a>
impl<'a> From<&'a mut SynchronizeEvent> for EventMut<'a>
source§fn from(event: &'a mut SynchronizeEvent) -> Self
fn from(event: &'a mut SynchronizeEvent) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a mut UInputEvent> for EventMut<'a>
impl<'a> From<&'a mut UInputEvent> for EventMut<'a>
source§fn from(event: &'a mut UInputEvent) -> Self
fn from(event: &'a mut UInputEvent) -> Self
Converts to this type from the input type.