Expand description
Utilities for determining the limits that an operating system enforces on a given particular process.
In its current implementation, this crate allows convenient read of the /proc/<pid>/limits
file on GNU/Linux. On any other platform, the provided methods will return an error so that the
user can decide what to do in the absence of information about limits.
Support for other operating systems and platforms may be added on demand.
Structs§
- Limit
- A limit for a GNU/Linux specific limitable property.
- Limits
- A structure containing all possible properties that can be limited by a GNU/Linux operating system.
Enums§
- Error
- All methods that can fail in this crate should return
Result<_, Error>
. That is, one of the variants herein.
Functions§
- get_
own_ limits - Get the limits for the process in which we are running (our own process id).
- get_
pid_ limits - Get the limits for a specific process identifier.