pub(super) async fn route_and_delete_storage<'a>(
    model: &'a Model,
    use_decl: &'a UseStorageDecl,
    use_abs_moniker: AbsoluteMoniker,
) -> Result<(), ModelError> {
    let (dir_source_moniker, dir_source_path, relative_moniker) =
        route_storage_capability(model, use_decl, use_abs_moniker).await?;
    storage::delete_isolated_storage(
        &model,
        dir_source_moniker,
        &dir_source_path,
        &relative_moniker,
    )
    .await
    .map_err(|e| ModelError::from(e))?;
    Ok(())
}
/// Routes a `UseDecl::Storage` to the component instance providing the backing directory and
/// deletes its isolated storage.
Routes a `UseDecl::Storage` to the component instance providing the backing directory and
deletes its isolated storage.
Routes a ` UseDecl :: Storage ` to the component instance providing the backing directory and deletes its isolated storage .
pub(super) async fn route_and_delete_storage<'a>(
    model: &'a Model,
    use_decl: &'a UseStorageDecl,
    use_abs_moniker: AbsoluteMoniker,
) -> Result<(), ModelError> {
    let (dir_source_moniker, dir_source_path, relative_moniker) =
        route_storage_capability(model, use_decl, use_abs_moniker).await?;
    storage::delete_isolated_storage(
        &model,
        dir_source_moniker,
        &dir_source_path,
        &relative_moniker,
    )
    .await
    .map_err(|e| ModelError::from(e))?;
    Ok(())
}
pub ( super ) async fn route_and_delete_storage < ' a > ( model : & ' a Model , use_decl : & ' a UseStorageDecl , use_abs_moniker : AbsoluteMoniker , ) -> Result < ( ) , ModelError > { let ( dir_source_moniker , dir_source_path , relative_moniker ) = route_storage_capability ( model , use_decl , use_abs_moniker ) . await ? ; storage :: delete_isolated_storage ( & model , dir_source_moniker , & dir_source_path , & relative_moniker , ) . await . map_err ( | e | ModelError :: from ( e ) ) ? ; Ok ( ( ) ) }
Routes a `UseDecl::Storage` to the component instance providing the backing directory and
deletes its isolated storage.
Routes a ` UseDecl :: Storage ` to the component instance providing the backing directory and deletes its isolated storage .
model
&'a Model
use_decl
&'a UseStorageDecl
use_abs_moniker
AbsoluteMoniker