Application component until termination.
This is generally the function you'll call to get everything up and running.
Note that you pass your top level component as a type argument, not a value
argument. The framework will construct the component state automatically using
Default::default() before launching the component.
You can call
vgtk::quit() from inside the component or any subcomponent
to signal the application to terminate normally. This is equivalent to calling
Application::quit() on the
let return_code = vgtk::run::<MyComponent>(); std::process::exit(return_code);