pub trait AppEventHandler {
type AppState;
// Required method
fn handle_event(
&mut self,
app_state: &mut Self::AppState,
event: WindowEvent,
) -> Result<AppControl, Box<dyn Error>>;
}Required Associated Types§
Required Methods§
fn handle_event( &mut self, app_state: &mut Self::AppState, event: WindowEvent, ) -> Result<AppControl, Box<dyn Error>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".