pub trait UnhandledInputHandler: AsRcAny {
// Required methods
fn handle_unhandled_input_event<'async_trait>(
self: Rc<Self>,
unhandled_input_event: UnhandledInputEvent,
) -> Pin<Box<dyn Future<Output = Vec<InputEvent>> + 'async_trait>>
where Self: 'async_trait;
fn set_handler_healthy(self: Rc<Self>);
fn set_handler_unhealthy(self: Rc<Self>, msg: &str);
}
Expand description
An UnhandledInputHandler
is like an InputHandler
, but only deals in unhandled events.
Required Methods§
Sourcefn handle_unhandled_input_event<'async_trait>(
self: Rc<Self>,
unhandled_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>,
unhandled_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.
- The vector may be empty if, e.g., the handler chose to buffer the event.
- The vector may have multiple events if, e.g.,
- the handler chose to release previously buffered events, or
- the handler unpacked a single event into multiple events
§Parameters
input_event
: The InputEvent to be handled.
fn set_handler_healthy(self: Rc<Self>)
fn set_handler_unhealthy(self: Rc<Self>, msg: &str)
Implementors§
impl UnhandledInputHandler for ChromebookKeyboardHandler
impl UnhandledInputHandler for DeadKeysHandler
This trait implementation allows the [Handler] to be hooked up into the input pipeline.
impl UnhandledInputHandler for FactoryResetHandler
impl UnhandledInputHandler for ImeHandler
impl UnhandledInputHandler for InteractionStateHandler
impl UnhandledInputHandler for KeymapHandler
This trait implementation allows the KeymapHandler to be hooked up into the input pipeline.