[][src]Crate limits_rs

Utilities for determining the limits that an operating system enforce 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.