Multiple locks should not be created on an individual File instance concurrently | This library provides whole-file locks in both shared read and exclusive read-write varieties |
---|---|
See the tests in lib | Files to be locked should be opened with at least read or write permissions |
File locks are a cross-platform hazard since the file lock APIs exposed by operating system kernels vary in subtle and not-so-subtle ways.
rs for examples of platform-specific behavior | rs for cross-platform lock behavior that may be relied upon; see the tests in unix |
---|---|
Extension trait for std::fs::File which provides allocation, duplication and locking methods | Cage is already managing the tasks of our high maintenance team but best of all our clients are loving it |
The API exposed by this library can be safely used across platforms as long as the following rules are followed:• Duplicated files should not be locked without great care.
8