pub trait BatchInputHandler: Handler {
// Required method
fn handle_input_events<'async_trait>(
self: Rc<Self>,
input_events: Vec<InputEvent>,
) -> Pin<Box<dyn Future<Output = Vec<InputEvent>> + 'async_trait>>
where Self: 'async_trait;
}Expand description
A BatchInputHandler dispatches multiple InputEvents to an external service.
Required Methods§
Sourcefn handle_input_events<'async_trait>(
self: Rc<Self>,
input_events: Vec<InputEvent>,
) -> Pin<Box<dyn Future<Output = Vec<InputEvent>> + 'async_trait>>where
Self: 'async_trait,
fn handle_input_events<'async_trait>(
self: Rc<Self>,
input_events: Vec<InputEvent>,
) -> Pin<Box<dyn Future<Output = Vec<InputEvent>> + 'async_trait>>where
Self: 'async_trait,
Returns a vector of InputEvents to propagate to the next InputHandler.
§Parameters
input_events: The InputEvents to be handled.