pub enum KeyCapture {
CaptureAll,
IgnoreAll,
CaptureKeys(Vec<Key>),
IgnoreKeys(Vec<Key>),
}Expand description
Re-export for convenience. Describes how to handle capturing key events from the host.
Variants§
CaptureAll
All keys will be captured from the host.
IgnoreAll
No keys will be captured from the host.
CaptureKeys(Vec<Key>)
Only the given keys will be captured from the host.
IgnoreKeys(Vec<Key>)
All keys except the given ones will be captured from the host.
Trait Implementations§
Source§impl Clone for KeyCapture
impl Clone for KeyCapture
Source§fn clone(&self) -> KeyCapture
fn clone(&self) -> KeyCapture
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KeyCapture
impl Debug for KeyCapture
Source§impl Default for KeyCapture
impl Default for KeyCapture
Source§fn default() -> KeyCapture
fn default() -> KeyCapture
Returns the “default value” for a type. Read more
Source§impl PartialEq for KeyCapture
impl PartialEq for KeyCapture
Source§fn eq(&self, other: &KeyCapture) -> bool
fn eq(&self, other: &KeyCapture) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KeyCapture
Auto Trait Implementations§
impl Freeze for KeyCapture
impl RefUnwindSafe for KeyCapture
impl Send for KeyCapture
impl Sync for KeyCapture
impl Unpin for KeyCapture
impl UnsafeUnpin for KeyCapture
impl UnwindSafe for KeyCapture
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