pub struct KeymapContext {
pub time_ms: u32,
pub idle_time_ms: u32,
}
Expand description
Context provided from the keymap to the smart keys.
Fields§
§time_ms: u32
Number of milliseconds since keymap has been initialized.
idle_time_ms: u32
Number of milliseconds since keymap received an input event.
Trait Implementations§
Source§impl Clone for KeymapContext
impl Clone for KeymapContext
Source§fn clone(&self) -> KeymapContext
fn clone(&self) -> KeymapContext
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 KeymapContext
impl Debug for KeymapContext
Source§impl<'c> From<&'c Context> for &'c KeymapContext
impl<'c> From<&'c Context> for &'c KeymapContext
impl Copy for KeymapContext
Auto Trait Implementations§
impl Freeze for KeymapContext
impl RefUnwindSafe for KeymapContext
impl Send for KeymapContext
impl Sync for KeymapContext
impl Unpin for KeymapContext
impl UnwindSafe for KeymapContext
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