Struct procinfo::pid::Limit
[−]
[src]
pub struct Limit<T> { pub soft: Option<T>, pub hard: Option<T>, }
A resource limit, including a soft and hard bound.
Fields
soft: Option<T>
The soft resource limit.
The kernel enforces that resource usage does not exceed this value.
hard: Option<T>
The hard resource limit.
The kernel allows the soft limit to be raised until this limit using
setrlimit
.
Trait Implementations
impl<T: Clone> Clone for Limit<T>
[src]
fn clone(&self) -> Limit<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T: Copy> Copy for Limit<T>
[src]
impl<T: Debug> Debug for Limit<T>
[src]
impl<T: PartialEq> PartialEq for Limit<T>
[src]
fn eq(&self, __arg_0: &Limit<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Limit<T>) -> bool
This method tests for !=
.