Enum rustix::process::Resource

#[repr(u32)]
pub enum Resource {    
    Cpu,
    Fsize,
    Data,
    Stack,
    Core,
    Rss,
    Nproc,
    Nofile,
    Memlock,
    As,
    Locks,
    Sigpending,
    Msgqueue,
    Nice,
    Rtprio,
    Rttime,
}
Documentation

A resource value for use with getrlimit, setrlimit, and prlimit.

Variants

Cpu

RLIMIT_CPU

Fsize

RLIMIT_FSIZE

Data

RLIMIT_DATA

Stack

RLIMIT_STACK

Core

RLIMIT_CORE

Rss

RLIMIT_RSS

Nproc

RLIMIT_NPROC

Nofile

RLIMIT_NOFILE

Memlock

RLIMIT_MEMLOCK

As

RLIMIT_AS

Locks

RLIMIT_LOCKS

Sigpending

RLIMIT_SIGPENDING

Msgqueue

RLIMIT_MSGQUEUE

Nice

RLIMIT_NICE

Rtprio

RLIMIT_RTPRIO

Rttime

RLIMIT_RTTIME

Trait Implementations

impl Clone for Resource
fn clone(&Self) -> Resource
impl Copy for Resource
impl Debug for Resource
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Eq for Resource
impl PartialEq<Resource> for Resource
fn eq(&Self, other: &Resource) -> bool

Auto Trait Implementations

impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnwindSafe for Resource

Blanket Implementations

impl<T> Any for T
where
    T: 'static + ?Sized,
fn type_id(&Self) -> TypeId
impl<T> Borrow<T> for T
where
    T: ?Sized,
fn borrow(&Self) -> &T
impl<T> BorrowMut<T> for T
where
    T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T
impl<T> From<T> for T
fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for T
where
    U: From<T>,
fn into(Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl<T> ToOwned for T
where
    T: Clone,
type Owned = T
fn to_owned(&Self) -> T
fn clone_into(&Self, target: &mut T)
impl<T, U> TryFrom<U> for T
where
    U: Into<T>,
type Error = Infallible
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for T
where
    U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
fn try_into(Self) -> Result<U, <U as TryFrom<T>>::Error>