pub trait KeyDispatcher {
// Required method
fn dispatch<'life0, 'async_trait>(
&'life0 self,
event: KeyEvent,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Provides a method for dispatching keys, in case the tests need to vary them.