Type Alias rerun::external::eframe::AppCreator

pub type AppCreator<'app> = Box<dyn FnOnce(&CreationContext<'_>) -> Result<Box<dyn App + 'app>, Box<dyn Error + Sync + Send>> + 'app>;
Expand description

This is how your app is created.

You can use the CreationContext to setup egui, restore state, setup OpenGL things, etc.

Aliased Type§

struct AppCreator<'app>(Unique<dyn FnOnce(&CreationContext<'_>) -> Result<Box<dyn App + 'app>, Box<dyn Error + Sync + Send>> + 'app>, Global);

Fields§

§0: Unique<dyn FnOnce(&CreationContext<'_>) -> Result<Box<dyn App + 'app>, Box<dyn Error + Sync + Send>> + 'app>§1: Global