cargo::util

# Module flock

Source
Expand description

File-locking support.

This module defines the `Filesystem` type which is an abstraction over a filesystem, ensuring that access to the filesystem is only done through coordinated locks.

The `FileLock` type represents a locked file, and provides access to the file.

## Modules§

- sys 🔒

## Structs§

- FileLock
  A locked file.
- Filesystem
  A “filesystem” is intended to be a globally shared, hence locked, resource in Cargo.

## Functions§

- acquire 🔒
  Acquires a lock on a file in a “nice” manner.
- is_on_nfs_mount 🔒
- try_acquire 🔒