pub struct Keyboard(/* private fields */);Implementations§
Source§impl Keyboard
impl Keyboard
Sourcepub fn release(&self)
pub fn release(&self)
Notification that the client is no longer interested in this keyboard.
The EIS implementation will release any resources related to this keyboard and
send the ei_keyboard.destroyed event once complete.
Sourcepub fn key(&self, key: u32, state: KeyState)
pub fn key(&self, key: u32, state: KeyState)
Generate a key event on this keyboard. If the device has an
ei_keyboard.keymap, the key code corresponds to that keymap.
The key codes must match the defines in linux/input-event-codes.h.
It is a client bug to send more than one key request for the same key
within the same ei_device.frame and the EIS implementation
may ignore either or all key state changes and/or disconnect the client.
It is a protocol violation to send this request for a client
of an ei_handshake.context_type other than sender.
Trait Implementations§
impl Eq for Keyboard
impl StructuralPartialEq for Keyboard
Auto Trait Implementations§
impl Freeze for Keyboard
impl RefUnwindSafe for Keyboard
impl Send for Keyboard
impl Sync for Keyboard
impl Unpin for Keyboard
impl UnwindSafe for Keyboard
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