rustix/backend/linux_raw/process/
types.rs
1#[derive(Copy, Clone, Debug, Eq, PartialEq)]
8#[repr(u32)]
9#[non_exhaustive]
10pub enum Resource {
11 Cpu = linux_raw_sys::general::RLIMIT_CPU,
13 Fsize = linux_raw_sys::general::RLIMIT_FSIZE,
15 Data = linux_raw_sys::general::RLIMIT_DATA,
17 Stack = linux_raw_sys::general::RLIMIT_STACK,
19 Core = linux_raw_sys::general::RLIMIT_CORE,
21 Rss = linux_raw_sys::general::RLIMIT_RSS,
23 Nproc = linux_raw_sys::general::RLIMIT_NPROC,
25 Nofile = linux_raw_sys::general::RLIMIT_NOFILE,
27 Memlock = linux_raw_sys::general::RLIMIT_MEMLOCK,
29 As = linux_raw_sys::general::RLIMIT_AS,
31 Locks = linux_raw_sys::general::RLIMIT_LOCKS,
33 Sigpending = linux_raw_sys::general::RLIMIT_SIGPENDING,
35 Msgqueue = linux_raw_sys::general::RLIMIT_MSGQUEUE,
37 Nice = linux_raw_sys::general::RLIMIT_NICE,
39 Rtprio = linux_raw_sys::general::RLIMIT_RTPRIO,
41 Rttime = linux_raw_sys::general::RLIMIT_RTTIME,
43}