pub struct KeymapHandler {
pub inspect_status: InputHandlerStatus,
/* private fields */
}
Expand description
KeymapHandler
applies a keymap to a keyboard event, resolving each key press
to a sequence of Unicode code points. This allows basic keymap application,
but does not lend itself to generalized text editing.
Create a new one with KeymapHandler::new.
Fields§
§inspect_status: InputHandlerStatus
The inventory of this handler’s Inspect status.
Implementations§
Trait Implementations§
Source§impl Debug for KeymapHandler
impl Debug for KeymapHandler
Source§impl Default for KeymapHandler
impl Default for KeymapHandler
Source§fn default() -> KeymapHandler
fn default() -> KeymapHandler
Returns the “default value” for a type. Read more
Source§impl UnhandledInputHandler for KeymapHandler
impl UnhandledInputHandler for KeymapHandler
This trait implementation allows the KeymapHandler to be hooked up into the input pipeline.
Source§fn handle_unhandled_input_event<'async_trait>(
self: Rc<Self>,
input_event: UnhandledInputEvent,
) -> Pin<Box<dyn Future<Output = Vec<InputEvent>> + 'async_trait>>where
Self: 'async_trait,
fn handle_unhandled_input_event<'async_trait>(
self: Rc<Self>,
input_event: UnhandledInputEvent,
) -> Pin<Box<dyn Future<Output = Vec<InputEvent>> + 'async_trait>>where
Self: 'async_trait,
Returns a vector of InputEvents to propagate to the next InputHandler. Read more
fn set_handler_healthy(self: Rc<Self>)
fn set_handler_unhealthy(self: Rc<Self>, msg: &str)
Auto Trait Implementations§
impl !Freeze for KeymapHandler
impl !RefUnwindSafe for KeymapHandler
impl Send for KeymapHandler
impl !Sync for KeymapHandler
impl Unpin for KeymapHandler
impl !UnwindSafe for KeymapHandler
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> InputHandler for Twhere
T: UnhandledInputHandler,
impl<T> InputHandler for Twhere
T: UnhandledInputHandler,
Source§fn handle_input_event<'async_trait>(
self: Rc<T>,
input_event: InputEvent,
) -> Pin<Box<dyn Future<Output = Vec<InputEvent>> + 'async_trait>>where
T: 'async_trait,
fn handle_input_event<'async_trait>(
self: Rc<T>,
input_event: InputEvent,
) -> Pin<Box<dyn Future<Output = Vec<InputEvent>> + 'async_trait>>where
T: 'async_trait,
Returns a vector of InputEvents to propagate to the next InputHandler. Read more