Skip to main content

with_file_lock

Function with_file_lock 

Source
pub fn with_file_lock<T, E: From<Error>>(
    path: &Path,
    f: impl FnOnce() -> Result<T, E>,
) -> Result<T, E>