[−][src]Enum rlimit::Resource
Enum type used for resource values.
Variants
AS
The maximum size (in bytes) of the process's virtual memory (address space).
CORE
The maximum size (in bytes) of a core file that the process may dump.
CPU
A limit (in seconds) on the amount of CPU time that the process can consume.
DATA
The maximum size (in bytes) of the process's data segment (initialized data, uninitialized data, and heap).
FSIZE
The maximum size (in bytes) of files that the process may create.
MEMLOCK
The maximum number (in bytes) of memory that may be locked into RAM.
NOFILE
This specifies a value one greater than the maximum file descriptor number that can be opened by this process.
NPROC
A limit on the number of extant process (or, more precisely on Linux, threads) for the real user ID of the calling process.
STACK
The maximum size (in bytes) of the process stack.
Methods
impl Resource
[src]
pub fn as_raw_resource(&self) -> RawResource
[src]
pub fn set(&self, soft: rlim, hard: rlim) -> Result<()>
[src]
Set resource limits.
pub fn get(&self) -> Result<(rlim, rlim)>
[src]
Get resource limits.
Trait Implementations
impl Clone for Resource
[src]
fn clone(&self) -> Resource
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Ord for Resource
[src]
fn cmp(&self, other: &Resource) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Restrict a value to a certain interval. Read more
impl PartialOrd<Resource> for Resource
[src]
fn partial_cmp(&self, other: &Resource) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl PartialEq<Resource> for Resource
[src]
fn eq(&self, other: &Resource) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Copy for Resource
[src]
impl Eq for Resource
[src]
impl Debug for Resource
[src]
impl Hash for Resource
[src]
Auto Trait Implementations
impl Unpin for Resource
impl Sync for Resource
impl Send for Resource
impl UnwindSafe for Resource
impl RefUnwindSafe for Resource
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,