Skip to main content

replace_config_document_if_unchanged

Function replace_config_document_if_unchanged 

Source
pub fn replace_config_document_if_unchanged(
    path: &Path,
    expected: Option<&str>,
    body: &str,
) -> Result<()>
Expand description

Replace a full typed snapshot only when on-disk bytes still equal the snapshot the caller originally loaded. None means the file was absent.