pub trait AppEventHandler {
type AppState;
// Required method
fn handle_event(
&mut self,
app_state: &mut Self::AppState,
event: WindowEvent,
) -> Result<AppControl, Box<dyn Error>>;
}
pub trait AppEventHandler {
type AppState;
// Required method
fn handle_event(
&mut self,
app_state: &mut Self::AppState,
event: WindowEvent,
) -> Result<AppControl, Box<dyn Error>>;
}