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.
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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RlimitResource
Source§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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RlimitResource
Source§impl PartialEq for RlimitResource
impl PartialEq for RlimitResource
Source§fn eq(&self, other: &RlimitResource) -> bool
fn eq(&self, other: &RlimitResource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RlimitResource
impl Serialize for RlimitResource
impl StructuralPartialEq for RlimitResource
Auto Trait Implementations§
impl Freeze for RlimitResource
impl RefUnwindSafe for RlimitResource
impl Send for RlimitResource
impl Sync for RlimitResource
impl Unpin for RlimitResource
impl UnsafeUnpin for RlimitResource
impl UnwindSafe for RlimitResource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more