Enum input::event::device::DeviceEvent
[−]
[src]
pub enum DeviceEvent { Added(DeviceAddedEvent), Removed(DeviceRemovedEvent), }
A device related Event
Variants
Added(DeviceAddedEvent)
Signals that a device has been added to the context.
Removed(DeviceRemovedEvent)
Signals that a device has been removed.
Trait Implementations
impl Debug for DeviceEvent
[src]
impl PartialEq for DeviceEvent
[src]
fn eq(&self, __arg_0: &DeviceEvent) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DeviceEvent) -> bool
[src]
This method tests for !=
.
impl Eq for DeviceEvent
[src]
impl Hash for DeviceEvent
[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 EventTrait for DeviceEvent
[src]
fn into_event(self) -> Event where
Self: Sized,
[src]
Self: Sized,
Convert into a general Event
again
fn context(&self) -> Libinput
[src]
Get the libinput context from the event.
fn device(&self) -> Device
[src]
Return the device associated with this event. Read more
impl FromRaw<libinput_event_device_notify> for DeviceEvent
[src]
unsafe fn from_raw(event: *mut libinput_event_device_notify) -> Self
[src]
Create a new instance of this type from a raw pointer. Read more
impl AsRaw<libinput_event_device_notify> for DeviceEvent
[src]
fn as_raw(&self) -> *const libinput_event_device_notify
[src]
Receive a raw pointer representing this type.