#[repr(u32)]pub enum Resource {
Cpu = 0,
Fsize = 1,
Data = 2,
Stack = 3,
Core = 4,
Nproc = 7,
Nofile = 8,
Memlock = 6,
As = 5,
}
Variants§
Cpu = 0
RLIMIT_CPU
Fsize = 1
RLIMIT_FSIZE
Data = 2
RLIMIT_DATA
Stack = 3
RLIMIT_STACK
Core = 4
RLIMIT_CORE
Nproc = 7
RLIMIT_NPROC
Nofile = 8
RLIMIT_NOFILE
Memlock = 6
RLIMIT_MEMLOCK
As = 5
RLIMIT_AS
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
Mutably borrows from an owned value. Read more