Skip to main content

with_vault

Function with_vault 

Source
pub fn with_vault<R>(
    root: &str,
    f: impl FnOnce(&Vault<'_>) -> Result<R, CloudError>,
) -> Result<R, CloudError>
Expand description

Opens the vault linked to the checkout at root and runs f on it. Local only: nothing here contacts Cloud.