pub(super) async fn route_and_delete_storage<'a>(
    use_decl: &'a UseStorageDecl,
    target_realm: &'a Arc<Realm>,
) -> Result<(), ModelError> {
    let (dir_source_realm, dir_source_path, relative_moniker, _) =
        route_storage_capability(use_decl, target_realm).await?;
    storage::delete_isolated_storage(dir_source_realm, &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>(
    use_decl: &'a UseStorageDecl,
    target_realm: &'a Arc<Realm>,
) -> Result<(), ModelError> {
    let (dir_source_realm, dir_source_path, relative_moniker, _) =
        route_storage_capability(use_decl, target_realm).await?;
    storage::delete_isolated_storage(dir_source_realm, &dir_source_path, &relative_moniker)
        .await
        .map_err(|e| ModelError::from(e))?;
    Ok(())
}
pub ( super ) async fn route_and_delete_storage < ' a > ( use_decl : & ' a UseStorageDecl , target_realm : & ' a Arc < Realm > , ) -> Result < ( ) , ModelError > { let ( dir_source_realm , dir_source_path , relative_moniker , _ ) = route_storage_capability ( use_decl , target_realm ) . await ? ; storage :: delete_isolated_storage ( dir_source_realm , & 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 .
use_decl
&'a UseStorageDecl
target_realm
&'a Arc<Realm>
use_decl
&'a UseStorageDecl
target_realm
&'a Arc<Realm>