component_debug::lifecycle

Function start_instance

Source
pub async fn start_instance(
    lifecycle_controller: &LifecycleControllerProxy,
    moniker: &Moniker,
) -> Result<BoxFuture<'static, Result<(), Error>>, StartError>
Expand description

Uses the fuchsia.sys2.LifecycleController protocol to start a component instance with the given moniker.

Returns a future that can be waited on to know when the component instance has stopped.