[−][src]Enum input_linux::EventMut
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
impl<'a> EventMut<'a>
[src]
pub fn new(event: &'a mut InputEvent) -> Result<Self, RangeError>
[src]
Wraps the generic InputEvent
into a mutable event.
Trait Implementations
impl<'a> AsRef<InputEvent> for EventMut<'a>
[src]
pub fn as_ref(&self) -> &InputEvent
[src]
impl<'a> Debug for EventMut<'a>
[src]
impl<'a> Eq for EventMut<'a>
[src]
impl<'a> From<&'a EventMut<'a>> for &'a InputEvent
[src]
impl<'a> From<&'a mut AbsoluteEvent> for EventMut<'a>
[src]
pub fn from(event: &'a mut AbsoluteEvent) -> Self
[src]
impl<'a> From<&'a mut AutorepeatEvent> for EventMut<'a>
[src]
pub fn from(event: &'a mut AutorepeatEvent) -> Self
[src]
impl<'a> From<&'a mut Event> for EventMut<'a>
[src]
impl<'a> From<&'a mut KeyEvent> for EventMut<'a>
[src]
impl<'a> From<&'a mut LedEvent> for EventMut<'a>
[src]
impl<'a> From<&'a mut MiscEvent> for EventMut<'a>
[src]
impl<'a> From<&'a mut RelativeEvent> for EventMut<'a>
[src]
pub fn from(event: &'a mut RelativeEvent) -> Self
[src]
impl<'a> From<&'a mut SoundEvent> for EventMut<'a>
[src]
pub fn from(event: &'a mut SoundEvent) -> Self
[src]
impl<'a> From<&'a mut SwitchEvent> for EventMut<'a>
[src]
pub fn from(event: &'a mut SwitchEvent) -> Self
[src]
impl<'a> From<&'a mut SynchronizeEvent> for EventMut<'a>
[src]
pub fn from(event: &'a mut SynchronizeEvent) -> Self
[src]
impl<'a> From<&'a mut UInputEvent> for EventMut<'a>
[src]
pub fn from(event: &'a mut UInputEvent) -> Self
[src]
impl<'a> Hash for EventMut<'a>
[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<'a> PartialEq<EventMut<'a>> for EventMut<'a>
[src]
pub fn eq(&self, other: &EventMut<'a>) -> bool
[src]
pub fn ne(&self, other: &EventMut<'a>) -> bool
[src]
impl<'a> StructuralEq for EventMut<'a>
[src]
impl<'a> StructuralPartialEq for EventMut<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for EventMut<'a>
impl<'a> Send for EventMut<'a>
impl<'a> Sync for EventMut<'a>
impl<'a> Unpin for EventMut<'a>
impl<'a> !UnwindSafe for EventMut<'a>
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, 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>,