#[non_exhaustive]pub enum DeviceEvent {
Added(DeviceAddedEvent),
Removed(DeviceRemovedEvent),
}
Expand description
A device related Event
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Added(DeviceAddedEvent)
Signals that a device has been added to the context.
Removed(DeviceRemovedEvent)
Signals that a device has been removed.
Trait Implementations§
Source§impl AsRaw<libinput_event_device_notify> for DeviceEvent
impl AsRaw<libinput_event_device_notify> for DeviceEvent
Source§fn as_raw(&self) -> *const libinput_event_device_notify
fn as_raw(&self) -> *const libinput_event_device_notify
Receive a raw pointer representing this type.
Source§impl Context for DeviceEvent
impl Context for DeviceEvent
Source§impl Debug for DeviceEvent
impl Debug for DeviceEvent
Source§impl EventTrait for DeviceEvent
impl EventTrait for DeviceEvent
Source§impl Hash for DeviceEvent
impl Hash for DeviceEvent
Source§impl PartialEq for DeviceEvent
impl PartialEq for DeviceEvent
impl Eq for DeviceEvent
impl StructuralPartialEq for DeviceEvent
Auto Trait Implementations§
impl Freeze for DeviceEvent
impl !RefUnwindSafe for DeviceEvent
impl !Send for DeviceEvent
impl !Sync for DeviceEvent
impl Unpin for DeviceEvent
impl !UnwindSafe for DeviceEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> DeviceEventTrait for T
impl<T> DeviceEventTrait for T
Source§fn into_device_event(self) -> DeviceEventwhere
Self: Sized,
fn into_device_event(self) -> DeviceEventwhere
Self: Sized,
Convert into a general
DeviceEvent
again