pub struct Device { /* private fields */ }Implementations§
Source§impl Device
impl Device
pub fn parse(bytes: &[u8]) -> (usize, Self)
pub fn inputs(&self) -> &DeviceInputs
pub fn inputs_mut(&mut self) -> &mut DeviceInputs
pub fn enable(&self) -> bool
pub fn enable_mut(&mut self) -> &mut bool
pub fn key_code(&self) -> Option<u32>
pub fn key_code_mut(&mut self) -> &mut Option<u32>
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