#[non_exhaustive]pub enum Resource {
Show 19 variants
AS,
CORE,
CPU,
DATA,
FSIZE,
KQUEUES,
LOCKS,
MEMLOCK,
MSGQUEUE,
NICE,
NOFILE,
NPROC,
RSS,
RTPRIO,
RTTIME,
SBSIZE,
SIGPENDING,
STACK,
SWAP,
}Expand description
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AS
Maximum total memory size of the process
CORE
Maximum size of a core file created by a terminated process
CPU
Maximum amount of CPU time the process can consume
DATA
Maximum size of a data segment of the process
FSIZE
Maximum size of a file the process can create
KQUEUES
Maximum number of kernel event queues (kqueues)
LOCKS
Maximum number of file locks the process can hold
MEMLOCK
Maximum size of memory locked into RAM
MSGQUEUE
Maximum total size of POSIX message queues
NICE
Maximum process priority
This resource specifies the highest priority that a process can set using
setpriority or nice. When the resource value is set to n, the process
can lower its nice value (that is, raise the priority) to (20 - n).
NOFILE
Maximum number of open files in the process
NPROC
Maximum number of processes the user can run
RSS
Maximum physical memory size of the process
RTPRIO
Maximum real-time priority
RTTIME
Maximum amount of CPU time the process can consume in real-time scheduling mode without a blocking system call (microseconds)
SBSIZE
Maximum size of the socket buffer
SIGPENDING
Maximum number of signals that can be queued to the process
STACK
Maximum size of the process stack
SWAP
Maximum size of the swap space that can be used by the user
Implementations§
Trait Implementations§
impl Copy for Resource
impl Eq for Resource
impl StructuralPartialEq for Resource
Auto Trait Implementations§
impl Freeze for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnwindSafe for Resource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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