Skip to main content

edit

Function edit 

Source
pub fn edit<T: DeserializeOwned + Serialize + Default, R>(
    p: &Path,
    f: impl FnOnce(&mut T) -> R,
) -> Result<R, String>
Expand description

Read-modify-write a shared root file under an exclusive lock.