filelock-rs
filelock-rs is a Rust library that provides functionality for managing PID files and file locks.
Features
- Pid: The
pid
module provides functionality for creating, reading, and managing PID files. - FdLock: The
fdlock
module provides a traitFdLock
that extends theAsRawFd
trait, allowing file locks to be placed on file descriptors.
Installation
Add this to your Cargo.toml
:
[]
= "0.1.0"
Usage
use filelock- Pid;
use filelock- FdLock;
License
Copyright 2023 Vincenzo Palazzo <vincenzopalazzodev@gmail.com>. See LICENSE file.