Enum dpdk_unix::android_linux::resource_limits::ResourceLimit [−][src]
pub enum ResourceLimit { Finite(u64), Infinite, }
Represents a finite quantity or infinite (ie no) limit for a resource.
Variants
Finite(u64)
A finite limit; may be zero.
Infinite
An infinite limit, ie no limit.
Not all resources support an infinite limit.
Also used to signify 'true' for resources which have an on-off setting.
Methods
impl ResourceLimit
[src]
impl ResourceLimit
pub fn maximum_number_of_open_file_descriptors(
proc_path: &ProcPath
) -> Result<ResourceLimit, Error>
[src]
pub fn maximum_number_of_open_file_descriptors(
proc_path: &ProcPath
) -> Result<ResourceLimit, Error>
Obtains the maximum number of file descriptors as a finite resource limit.
pub fn value(&self) -> u64
[src]
pub fn value(&self) -> u64
Value.
Trait Implementations
impl Debug for ResourceLimit
[src]
impl Debug for ResourceLimit
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for ResourceLimit
[src]
impl Copy for ResourceLimit
impl Clone for ResourceLimit
[src]
impl Clone for ResourceLimit
fn clone(&self) -> ResourceLimit
[src]
fn clone(&self) -> ResourceLimit
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for ResourceLimit
[src]
impl PartialEq for ResourceLimit
fn eq(&self, other: &ResourceLimit) -> bool
[src]
fn eq(&self, other: &ResourceLimit) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ResourceLimit) -> bool
[src]
fn ne(&self, other: &ResourceLimit) -> bool
This method tests for !=
.
impl Eq for ResourceLimit
[src]
impl Eq for ResourceLimit
impl PartialOrd for ResourceLimit
[src]
impl PartialOrd for ResourceLimit
fn partial_cmp(&self, other: &ResourceLimit) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &ResourceLimit) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &ResourceLimit) -> bool
[src]
fn lt(&self, other: &ResourceLimit) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &ResourceLimit) -> bool
[src]
fn le(&self, other: &ResourceLimit) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &ResourceLimit) -> bool
[src]
fn gt(&self, other: &ResourceLimit) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &ResourceLimit) -> bool
[src]
fn ge(&self, other: &ResourceLimit) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for ResourceLimit
[src]
impl Ord for ResourceLimit
fn cmp(&self, other: &ResourceLimit) -> Ordering
[src]
fn cmp(&self, other: &ResourceLimit) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for ResourceLimit
[src]
impl Hash for ResourceLimit
Auto Trait Implementations
impl Send for ResourceLimit
impl Send for ResourceLimit
impl Sync for ResourceLimit
impl Sync for ResourceLimit