Skip to main content

drive_live_window

Function drive_live_window 

Source
pub fn drive_live_window<A: ResourceApp, T>(
    drive: impl FnOnce(&mut App) -> T,
) -> Result<T, LaunchError>
Expand description

Drive the window A’s live launch opens, mounted as inspect_live_window mounts it: the real ui_core::App, which a test or benchmark feeds input through ui_core::App::surface_input.

§Errors

Returns any launch, storage or construction failure.