#[non_exhaustive]pub enum KeyboardMode {
None,
Exclusive,
OnDemand,
EntryNumber,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
This window should not receive keyboard events.
Exclusive
This window should have exclusive focus if it is on the top or overlay layer.
OnDemand
The user should be able to focus and unfocues this window in an implementation defined way. Not supported for protocol version < 4.
EntryNumber
Should not be used except to get the number of entries. (NOTE: may change in future releases as more entries are added)
Trait Implementations§
Source§impl Clone for KeyboardMode
impl Clone for KeyboardMode
Source§fn clone(&self) -> KeyboardMode
fn clone(&self) -> KeyboardMode
Returns a copy 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 moreSource§impl Debug for KeyboardMode
impl Debug for KeyboardMode
Source§impl Hash for KeyboardMode
impl Hash for KeyboardMode
Source§impl Ord for KeyboardMode
impl Ord for KeyboardMode
Source§fn cmp(&self, other: &KeyboardMode) -> Ordering
fn cmp(&self, other: &KeyboardMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for KeyboardMode
impl PartialEq for KeyboardMode
Source§impl PartialOrd for KeyboardMode
impl PartialOrd for KeyboardMode
impl Copy for KeyboardMode
impl Eq for KeyboardMode
impl StructuralPartialEq for KeyboardMode
Auto Trait Implementations§
impl Freeze for KeyboardMode
impl RefUnwindSafe for KeyboardMode
impl Send for KeyboardMode
impl Sync for KeyboardMode
impl Unpin for KeyboardMode
impl UnwindSafe for KeyboardMode
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