[−][src]Enum rlimit::Resource
Enum type used for resource values.
Variants
The maximum size (in bytes) of the process's virtual memory (address space).
The maximum size (in bytes) of a core file that the process may dump.
A limit (in seconds) on the amount of CPU time that the process can consume.
The maximum size (in bytes) of the process's data segment (initialized data, uninitialized data, and heap).
The maximum size (in bytes) of files that the process may create.
A limit on the combined number
of flock(2)
locks and fcntl(2)
leases
that this process may establish.
The maximum number (in bytes) of memory that may be locked into RAM.
A limit on the number of bytes that can be allocated for POSIX message queues for the real user ID of the calling process.
This specifies a ceiling
to which the process's nice value can be raised
using setpriority(2)
or nice(2)
.
This specifies a value one greater than the maximum file descriptor number that can be opened by this process.
A limit on the number of extant process (or, more precisely on Linux, threads) for the real user ID of the calling process.
A limit (in bytes) on the process's resident set (the number of virtual pages resident in RAM).
This specifies a ceiling on the real-time priority
that may be set for this process
using sched_setscheduler(2)
and sched_setparam(2)
.
A limit (in microseconds) on the amount of CPU time that a process scheduled under a real-time scheduling policy may consume without making a blocking system call.
A limit on the number of signals that may be queued for the real user ID of the calling process.
The maximum size (in bytes) of the process stack.
Implementations
impl Resource
[src]
pub const fn as_raw_resource(self) -> RawResource
[src]
Returns the raw resource type
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]
impl Copy for Resource
[src]
impl Debug for Resource
[src]
impl Eq for Resource
[src]
impl FromStr for Resource
[src]
type Err = ParseResourceError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
Parse a Resource
from a &str
impl Hash for Resource
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Resource
[src]
fn cmp(&self, other: &Resource) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Resource> for Resource
[src]
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]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Resource
[src]
impl StructuralPartialEq for Resource
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> 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>,