[−][src]Struct input_device::platform::linux::evdev::Device
The input device.
Implementations
impl Device
[src]
pub fn open<P: AsRef<Path>>(path: P) -> Result<Self, Error>
[src]
Open device on specified path
.
pub fn set_non_blocking(&mut self, non_block: bool)
[src]
Enable or disable non-blocking access.
pub fn events(&mut self) -> Events<'_>ⓘ
[src]
Returns an Events iterator.
pub fn id(&self) -> DeviceId
[src]
Returns the DeviceId.
pub fn meta(&mut self) -> DeviceMeta
[src]
Returns the metadata of the device.
pub fn raw_events(&mut self) -> RawEvents<'_>ⓘ
[src]
Returns a RawEvents iterator.
pub fn raw_events_no_sync(&mut self) -> RawEventsNoSync<'_>ⓘNotable traits for RawEventsNoSync<'a>
impl<'a> Iterator for RawEventsNoSync<'a> type Item = RawEvent;
[src]
Notable traits for RawEventsNoSync<'a>
impl<'a> Iterator for RawEventsNoSync<'a> type Item = RawEvent;
Returns a RawEvents iterator with SYN event filtered.
pub fn read_one(&mut self) -> Result<RawEvent, Error>
[src]
Read one RawEvent from the device.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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,
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.
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>,