#[repr(i32)]#[non_exhaustive]pub enum Resource {
RLIMIT_AS,
RLIMIT_CORE,
RLIMIT_CPU,
RLIMIT_DATA,
RLIMIT_FSIZE,
RLIMIT_NOFILE,
RLIMIT_STACK,
}
Available on crate feature
resource
only.Expand description
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RLIMIT_AS
The maximum amount (in bytes) of virtual memory the process is allowed to map.
RLIMIT_CORE
The largest size (in bytes) core(5) file that may be created.
RLIMIT_CPU
The maximum amount of cpu time (in seconds) to be used by each process.
RLIMIT_DATA
The maximum size (in bytes) of the data segment for a process
RLIMIT_FSIZE
The largest size (in bytes) file that may be created.
RLIMIT_NOFILE
The maximum number of open files for this process.
RLIMIT_STACK
The maximum size (in bytes) of the stack segment for a process.
Trait Implementations§
source§impl Ord for Resource
impl Ord for Resource
source§impl PartialEq<Resource> for Resource
impl PartialEq<Resource> for Resource
source§impl PartialOrd<Resource> for Resource
impl PartialOrd<Resource> for Resource
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Resource
impl Eq for Resource
impl StructuralEq for Resource
impl StructuralPartialEq for Resource
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more