Struct input_pipeline::ime_handler::ImeHandler
source · pub struct ImeHandler {
pub inspect_status: InputHandlerStatus,
/* private fields */
}
Expand description
ImeHandler
is responsible for dispatching key events to the IME service, thus making sure
that key events are delivered to application runtimes (e.g., web, Flutter).
NOTE: The ImeHandler requires [ModifierHandler] to be installed upstream to apply the keymaps correctly.
Fields§
§inspect_status: InputHandlerStatus
The inventory of this handler’s Inspect status.
Implementations§
source§impl ImeHandler
impl ImeHandler
sourcepub async fn new(
input_handlers_node: &Node,
metrics_logger: MetricsLogger
) -> Result<Rc<Self>, Error>
pub async fn new( input_handlers_node: &Node, metrics_logger: MetricsLogger ) -> Result<Rc<Self>, Error>
Creates a new ImeHandler
by connecting out to the key event injector.
Trait Implementations§
source§impl UnhandledInputHandler for ImeHandler
impl UnhandledInputHandler for ImeHandler
source§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 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. Read more
fn set_handler_healthy(self: Rc<Self>)
fn set_handler_unhealthy(self: Rc<Self>, msg: &str)
Auto Trait Implementations§
impl !Freeze for ImeHandler
impl !RefUnwindSafe for ImeHandler
impl Send for ImeHandler
impl !Sync for ImeHandler
impl Unpin for ImeHandler
impl !UnwindSafe for ImeHandler
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> Encode<Ambiguous1> for T
impl<T> Encode<Ambiguous1> for T
source§impl<T> Encode<Ambiguous2> for T
impl<T> Encode<Ambiguous2> for T
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