pub struct InputDevice(/* private fields */);
Expand description
A specific input device.
Implementations§
Source§impl InputDevice
impl InputDevice
Sourcepub fn new(id: u64) -> InputDevice
pub fn new(id: u64) -> InputDevice
Creates a new InputDevice
. Should only be created in the platform
implementation, which also knows how the inner value is going to be
used.
Sourcepub fn inner(self) -> u64
pub fn inner(self) -> u64
Returns the inner value passed into InputDevice::new
. Generally only
relevant to the platform implementation.
Trait Implementations§
Source§impl Clone for InputDevice
impl Clone for InputDevice
Source§fn clone(&self) -> InputDevice
fn clone(&self) -> InputDevice
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InputDevice
impl Debug for InputDevice
Source§impl PartialEq for InputDevice
impl PartialEq for InputDevice
impl Copy for InputDevice
impl StructuralPartialEq for InputDevice
Auto Trait Implementations§
impl Freeze for InputDevice
impl RefUnwindSafe for InputDevice
impl Send for InputDevice
impl Sync for InputDevice
impl Unpin for InputDevice
impl UnwindSafe for InputDevice
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