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§
- Limits
- A placeholder for the
struct Limittype of unsupported operating systems.
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 - Always return an
UnsupportedOSerror for unsupported operating systems.