Skip to main content

install_workspace_document

Function install_workspace_document 

pub fn install_workspace_document(
    store: &Rc<dyn DurableStore>,
    package: &str,
    workspace: &str,
    doc: &mut AutoCommit,
) -> Result<Landing, TransferError>
Expand description

Put doc in place as the workspace’s own document of package in workspace (the package-primary record), as an earlier version of the app left it on this device: how a workspace written before a change of the app’s storage is opened in a test. Refuses to overwrite one.

§Errors

An invalid package or workspace, an occupied workspace document, or storage failure.