pub struct KeySent(/* private fields */);Expand description
Hookable: Triggers whenever a key is sent.
KeyEvents are “sent” when you type unmapped keys or with
the keys that were mapped, this is in contrast with KeyTyped,
which triggers when you type or when calling mode::type_keys.
For example, if jk is mapped to <Esc>, KeyTyped will
trigger once for j and once for k, while KeySent will
trigger once for <Esc>.
§Arguments
- The sent key.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeySent
impl RefUnwindSafe for KeySent
impl Send for KeySent
impl Sync for KeySent
impl Unpin for KeySent
impl UnsafeUnpin for KeySent
impl UnwindSafe for KeySent
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