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§

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,

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.

source

fn set_handler_healthy(self: Rc<Self>)

source

fn set_handler_unhealthy(self: Rc<Self>, msg: &str)

Implementors§