#[non_exhaustive]pub struct KeyboardEvent {
pub seat: WlSeat,
pub keyboard: WlKeyboard,
pub surface: ObjectId,
pub serial: u32,
pub time: u32,
pub keycode: Keycode,
pub keysym: Keysym,
pub repeat_info: Option<RepeatInfo>,
pub xkb_state: State,
}Available on crate feature
keyboard only.Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.seat: WlSeat§keyboard: WlKeyboard§surface: ObjectId§serial: u32§time: u32§keycode: Keycode§keysym: Keysym§repeat_info: Option<RepeatInfo>How this key should be repeated.
Present if the compositor advertised repeat info AND this key should be repeated (as defined by the current keymap).
xkb_state: StateTrait Implementations§
Source§impl Clone for KeyboardEvent
impl Clone for KeyboardEvent
Source§fn clone(&self) -> KeyboardEvent
fn clone(&self) -> KeyboardEvent
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for KeyboardEvent
impl RefUnwindSafe for KeyboardEvent
impl !Send for KeyboardEvent
impl !Sync for KeyboardEvent
impl Unpin for KeyboardEvent
impl UnwindSafe for KeyboardEvent
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