#[repr(u32)]pub enum LinuxRLimitResource {
Show 16 variants
RLIMIT_CPU = 0,
RLIMIT_FSIZE = 1,
RLIMIT_DATA = 2,
RLIMIT_STACK = 3,
RLIMIT_CORE = 4,
RLIMIT_RSS = 5,
RLIMIT_NPROC = 6,
RLIMIT_NOFILE = 7,
RLIMIT_MEMLOCK = 8,
RLIMIT_AS = 9,
RLIMIT_LOCKS = 10,
RLIMIT_SIGPENDING = 11,
RLIMIT_MSGQUEUE = 12,
RLIMIT_NICE = 13,
RLIMIT_RTPRIO = 14,
RLIMIT_RTTIME = 15,
}Expand description
Represents the available Linux resource limits.
Variants§
RLIMIT_CPU = 0
CPU time in seconds
RLIMIT_FSIZE = 1
Maximum size of files created by the process
RLIMIT_DATA = 2
Maximum size of the data segment
RLIMIT_STACK = 3
Maximum size of the stack segment
RLIMIT_CORE = 4
Maximum size of core dumps
RLIMIT_RSS = 5
Maximum resident set size (not enforced on Linux)
RLIMIT_NPROC = 6
Maximum number of processes
RLIMIT_NOFILE = 7
Maximum number of open file descriptors
RLIMIT_MEMLOCK = 8
Maximum locked memory size
RLIMIT_AS = 9
Maximum size of the address space
RLIMIT_LOCKS = 10
Maximum number of file locks
RLIMIT_SIGPENDING = 11
Maximum number of signals that can be queued
RLIMIT_MSGQUEUE = 12
Maximum number of bytes in POSIX message queues
RLIMIT_NICE = 13
Maximum nice priority
RLIMIT_RTPRIO = 14
Maximum real-time priority
RLIMIT_RTTIME = 15
Maximum seconds to sleep in real time
Implementations§
Trait Implementations§
Source§impl Clone for LinuxRLimitResource
impl Clone for LinuxRLimitResource
Source§fn clone(&self) -> LinuxRLimitResource
fn clone(&self) -> LinuxRLimitResource
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LinuxRLimitResource
impl Debug for LinuxRLimitResource
Source§impl Display for LinuxRLimitResource
impl Display for LinuxRLimitResource
Source§impl FromStr for LinuxRLimitResource
impl FromStr for LinuxRLimitResource
Source§impl PartialEq for LinuxRLimitResource
impl PartialEq for LinuxRLimitResource
Source§impl TryFrom<u32> for LinuxRLimitResource
impl TryFrom<u32> for LinuxRLimitResource
impl Copy for LinuxRLimitResource
impl Eq for LinuxRLimitResource
impl StructuralPartialEq for LinuxRLimitResource
Auto Trait Implementations§
impl Freeze for LinuxRLimitResource
impl RefUnwindSafe for LinuxRLimitResource
impl Send for LinuxRLimitResource
impl Sync for LinuxRLimitResource
impl Unpin for LinuxRLimitResource
impl UnwindSafe for LinuxRLimitResource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more