pub(super) async fn route_and_delete_storage(
    use_decl: UseStorageDecl,
    target: &Arc<ComponentInstance>,
) -> Result<(), ModelError> {
    let (storage_source_info, relative_moniker) = route_storage(use_decl, target).await?;
    storage::delete_isolated_storage(
        storage_source_info,
        relative_moniker,
        target.instance_id().as_ref(),
    )
    .await
}
/// Routes a storage capability from `target` to its source and deletes its isolated storage.
Routes a storage capability from `target` to its source and deletes its isolated storage.
Routes a storage capability from ` target ` to its source and deletes its isolated storage .
pub(super) async fn route_and_delete_storage(
    use_decl: UseStorageDecl,
    target: &Arc<ComponentInstance>,
) -> Result<(), ModelError> {
    let (storage_source_info, relative_moniker) = route_storage(use_decl, target).await?;
    storage::delete_isolated_storage(
        storage_source_info,
        relative_moniker,
        target.instance_id().as_ref(),
    )
    .await
}
pub ( super ) async fn route_and_delete_storage ( use_decl : UseStorageDecl , target : & Arc < ComponentInstance > , ) -> Result < ( ) , ModelError > { let ( storage_source_info , relative_moniker ) = route_storage ( use_decl , target ) . await ? ; storage :: delete_isolated_storage ( storage_source_info , relative_moniker , target . instance_id ( ) . as_ref ( ) , ) . await }
Routes a storage capability from `target` to its source and deletes its isolated storage.
Routes a storage capability from ` target ` to its source and deletes its isolated storage .
use_decl
UseStorageDecl
target
&Arc<ComponentInstance>
use_decl
UseStorageDecl
target
&Arc<ComponentInstance>