pub async fn install_app(
    name: &str,
    cell_data: Vec<(InstalledCell, Option<SerializedBytes>)>,
    safs: Vec<SafFile>,
    conductor_handle: ConductorHandle,
) {
    for saf in safs {
        conductor_handle.register_saf(saf).await.unwrap();
    }
    conductor_handle
        .clone()
        .install_app(name.to_string(), cell_data)
        .await
        .unwrap();

    conductor_handle
        .activate_app(name.to_string())
        .await
        .unwrap();

    let errors = conductor_handle.setup_cells().await.unwrap();

    assert!(errors.is_empty(), "{:?}", errors);
}
/// Do what's necessary to install an app
Do what's necessary to install an app
Do what ' s necessary to install an app
pub async fn install_app(
    name: &str,
    cell_data: Vec<(InstalledCell, Option<SerializedBytes>)>,
    safs: Vec<SafFile>,
    conductor_handle: ConductorHandle,
) {
    for saf in safs {
        conductor_handle.register_saf(saf).await.unwrap();
    }
    conductor_handle
        .clone()
        .install_app(name.to_string(), cell_data)
        .await
        .unwrap();
    conductor_handle
        .activate_app(name.to_string())
        .await
        .unwrap();
    let errors = conductor_handle.setup_cells().await.unwrap();
    assert!(errors.is_empty(), "{:?}", errors);
}
pub async fn install_app ( name : & str , cell_data : Vec < ( InstalledCell , Option < SerializedBytes > ) > , safs : Vec < SafFile > , conductor_handle : ConductorHandle , ) { for saf in safs { conductor_handle . register_saf ( saf ) . await . unwrap ( ) ; } conductor_handle . clone ( ) . install_app ( name . to_string ( ) , cell_data ) . await . unwrap ( ) ; conductor_handle . activate_app ( name . to_string ( ) ) . await . unwrap ( ) ; let errors = conductor_handle . setup_cells ( ) . await . unwrap ( ) ; assert ! ( errors is_empty ( ) " " errors ) ; }
Do what's necessary to install an app
Do what ' s necessary to install an app
name
&str
cell_data
Vec<(InstalledCell, Option<SerializedBytes>)>
safs
Vec<SafFile>
conductor_handle
ConductorHandle
name
&str
cell_data
Vec<(InstalledCell, Option<SerializedBytes>)>
safs
Vec<SafFile>
conductor_handle
ConductorHandle