pub struct Device { /* private fields */ }
Expand description
The input device.
Implementations§
Source§impl Device
impl Device
Sourcepub fn set_non_blocking(&mut self, non_block: bool)
pub fn set_non_blocking(&mut self, non_block: bool)
Enable or disable non-blocking access.
Sourcepub fn repeat_settings(&self) -> Result<(u32, u32), Error>
pub fn repeat_settings(&self) -> Result<(u32, u32), Error>
Returns the repeat settings (delay, period) of the device.
Sourcepub fn set_repeat_settings(
&mut self,
delay: u32,
peroid: u32,
) -> Result<(), Error>
pub fn set_repeat_settings( &mut self, delay: u32, peroid: u32, ) -> Result<(), Error>
Change the repeat settings of the device.
Sourcepub fn meta(&mut self) -> DeviceMeta
pub fn meta(&mut self) -> DeviceMeta
Returns the metadata of the device.
Sourcepub fn raw_events(&mut self) -> RawEvents<'_> ⓘ
pub fn raw_events(&mut self) -> RawEvents<'_> ⓘ
Returns a RawEvents iterator.
Sourcepub fn raw_events_no_sync(&mut self) -> RawEventsNoSync<'_> ⓘ
pub fn raw_events_no_sync(&mut self) -> RawEventsNoSync<'_> ⓘ
Returns a RawEvents iterator with SYN event filtered.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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