pub enum RlimitResource {
Show 16 variants
Cpu,
Fsize,
Data,
Stack,
Core,
Rss,
Nproc,
Nofile,
Memlock,
As,
Locks,
Sigpending,
Msgqueue,
Nice,
Rtprio,
Rttime,
}Expand description
POSIX resource limit identifiers (maps to RLIMIT_* constants).
This is the canonical set of resource names understood by the protocol; both the host-side builders and the guest-side parser agree on it.
Variants§
Cpu
Max CPU time in seconds (RLIMIT_CPU).
Fsize
Max file size in bytes (RLIMIT_FSIZE).
Data
Max data segment size (RLIMIT_DATA).
Stack
Max stack size (RLIMIT_STACK).
Core
Max core file size (RLIMIT_CORE).
Rss
Max resident set size (RLIMIT_RSS).
Nproc
Max number of processes (RLIMIT_NPROC).
Nofile
Max open file descriptors (RLIMIT_NOFILE).
Memlock
Max locked memory (RLIMIT_MEMLOCK).
As
Max address space size (RLIMIT_AS).
Locks
Max file locks (RLIMIT_LOCKS).
Sigpending
Max pending signals (RLIMIT_SIGPENDING).
Msgqueue
Max bytes in POSIX message queues (RLIMIT_MSGQUEUE).
Nice
Max nice priority (RLIMIT_NICE).
Rtprio
Max real-time priority (RLIMIT_RTPRIO).
Rttime
Max real-time timeout (RLIMIT_RTTIME).
Implementations§
Trait Implementations§
Source§impl Clone for RlimitResource
impl Clone for RlimitResource
Source§fn clone(&self) -> RlimitResource
fn clone(&self) -> RlimitResource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RlimitResource
impl Debug for RlimitResource
Source§impl<'de> Deserialize<'de> for RlimitResource
impl<'de> Deserialize<'de> for RlimitResource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for RlimitResource
impl PartialEq for RlimitResource
Source§fn eq(&self, other: &RlimitResource) -> bool
fn eq(&self, other: &RlimitResource) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for RlimitResource
impl Serialize for RlimitResource
Source§impl TryFrom<&str> for RlimitResource
Case-insensitive string to RlimitResource conversion.
impl TryFrom<&str> for RlimitResource
Case-insensitive string to RlimitResource conversion.