Skip to main content

launch_headless_pump

Function launch_headless_pump 

Source
pub fn launch_headless_pump<F, E>(
    root_fn: F,
    config: WindowConfig,
    event_handler: E,
) -> Result<(), String>
where F: FnMut() -> View + 'static, E: FnMut(&PlatformEvent, &mut AppRuntime) -> bool + 'static,
Expand description

Runs a deterministic headless event pump for testing, CI automation, and non-display environments.