pub trait App {
// Required method
fn update(&mut self, ctx: &Context, software_backend: &mut SoftwareBackend);
// Provided method
fn on_exit(&mut self, _ctx: &Context) { ... }
}Expand description
Implement this trait to write apps using the optional winit backend similarly to eframe’s App.