pub struct Device(/* private fields */);Implementations§
source§impl Device
impl Device
pub fn seat(&self) -> &Seat
pub fn device(&self) -> &Device
pub fn name(&self) -> Option<&str>
pub fn device_type(&self) -> DeviceType
pub fn dimensions(&self) -> Option<(u32, u32)>
pub fn regions(&self) -> &[Region]
pub fn keymap(&self) -> Option<&Keymap>
pub fn interface<T: Interface>(&self) -> Option<T>
pub fn has_capability(&self, capability: DeviceCapability) -> bool
Trait Implementations§
impl Eq for Device
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)