pub struct AppRunner {
pub events_to_unsubscribe: Vec<EventToUnsubscribe>,
/* private fields */
}
Fields§
§events_to_unsubscribe: Vec<EventToUnsubscribe>
Implementations§
source§impl AppRunner
impl AppRunner
sourcepub async fn new(
canvas_id: &str,
web_options: WebOptions,
app_creator: AppCreator
) -> Result<Self, String>
pub async fn new( canvas_id: &str, web_options: WebOptions, app_creator: AppCreator ) -> Result<Self, String>
Errors
Failure to initialize WebGL renderer.
pub fn egui_ctx(&self) -> &Context
sourcepub fn app_mut<ConreteApp: 'static + App>(&mut self) -> &mut ConreteApp
pub fn app_mut<ConreteApp: 'static + App>(&mut self) -> &mut ConreteApp
Get mutable access to the concrete App
we enclose.
This will panic if your app does not implement App::as_any_mut
.