run

Function run 

Source
pub async fn run<'a, T>(
    init: impl Into<<T as Component>::Init<'a>>,
) -> <T as Component>::Event
where T: Component,
Available on crate feature winio only.
Expand description

Runs a root component, and exits when the component outputs an event.