[][src]Struct input_device::platform::linux::evdev::Device

pub struct Device { /* fields omitted */ }

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<'_>

Notable traits for Events<'a>

impl<'a> Iterator for Events<'a> type Item = Event;
[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<'_>

Notable traits for RawEvents<'a>

impl<'a> Iterator for RawEvents<'a> type Item = RawEvent;
[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]

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

impl AsRawFd for Device[src]

impl Debug for Device[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.