pub async fn start_moniker<'a>(
    model: &'a Arc<Model>,
    abs_moniker: &'a AbsoluteMoniker,
    reason: &StartReason,
) -> Result<Arc<ComponentInstance>, ModelError> {
    let component = model.look_up(abs_moniker).await?;
    component.start(reason).await?;
    Ok(component)
}
/// Starts the component instance in the given component if it's not already running.
/// Returns the component that was bound to.
Starts the component instance in the given component if it's not already running.
Returns the component that was bound to.
Starts the component instance in the given component if it ' s not already running . Returns the component that was bound to .
pub async fn start_moniker<'a>(
    model: &'a Arc<Model>,
    abs_moniker: &'a AbsoluteMoniker,
    reason: &StartReason,
) -> Result<Arc<ComponentInstance>, ModelError> {
    let component = model.look_up(abs_moniker).await?;
    component.start(reason).await?;
    Ok(component)
}
pub async fn start_moniker < ' a > ( model : & ' a Arc < Model > , abs_moniker : & ' a AbsoluteMoniker , reason : & StartReason , ) -> Result < Arc < ComponentInstance > , ModelError > { let component = model . look_up ( abs_moniker ) . await ? ; component . start ( reason ) . await ? ; Ok ( component ) }
Starts the component instance in the given component if it's not already running.
Starts the component instance in the given component if it ' s not already running .
model
&'a Arc<Model>
abs_moniker
&'a AbsoluteMoniker
reason
&StartReason
model
&'a Arc<Model>
abs_moniker
&'a AbsoluteMoniker
reason
&StartReason