pub enum Device {
Headset(Headset),
Mouse(Mouse),
}Variants§
Implementations§
Source§impl Device
impl Device
pub fn id(&self) -> &str
pub fn name(&self) -> &str
pub fn product_id(&self) -> u16
pub fn capabilities(&self) -> Capabilities
pub fn metadata(&self) -> DeviceMetadata<'_>
pub fn as_headset_mut(&mut self) -> Option<&mut Headset>
pub fn as_mouse_mut(&mut self) -> Option<&mut Mouse>
Auto Trait Implementations§
impl !RefUnwindSafe for Device
impl !Sync for Device
impl !UnwindSafe for Device
impl Freeze for Device
impl Send for Device
impl Unpin for Device
impl UnsafeUnpin 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