Struct rlimit::Resource [−][src]
pub struct Resource { /* fields omitted */ }
Expand description
A kind of resource.
Be careful: The documentation of Resource
constants are based on a few systems.
It may be inconsistent with other platforms.
References
Linux: https://man7.org/linux/man-pages/man2/getrlimit.2.html
FreeBSD: https://www.freebsd.org/cgi/man.cgi?query=getrlimit
Implementations
Returns available resource names.
Returns available resources.
Returns the raw resource type.
Be careful: The actual type of RawResource
can be different on different platforms.
A limit (in seconds) on the amount of CPU time that the process can consume.
The maximum size (in bytes) of the process’s data segment (initialized data, uninitialized data, and heap).
This specifies a value one greater than the maximum file descriptor number that can be opened by this process.
A limit on the number of extant process (or, more precisely on Linux, threads) for the real user ID of the calling process.
A limit (in bytes) on the process’s resident set (the number of virtual pages resident in RAM).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Resource
impl UnwindSafe for Resource
Blanket Implementations
Mutably borrows from an owned value. Read more