Struct dpdk_unix::android_linux::resource_limits::SoftAndHardResourceLimit [−][src]
pub struct SoftAndHardResourceLimit { /* fields omitted */ }
Represents a combined soft and hard resource limit value.
Methods
impl SoftAndHardResourceLimit
[src]
impl SoftAndHardResourceLimit
pub const BothInfinite: SoftAndHardResourceLimit
BothInfinite: SoftAndHardResourceLimit = SoftAndHardResourceLimit{soft: ResourceLimit::Infinite, hard: ResourceLimit::Infinite,}
Both the soft and hard limits are set to be infinite.
pub const BothZero: SoftAndHardResourceLimit
BothZero: SoftAndHardResourceLimit = SoftAndHardResourceLimit{soft: ResourceLimit::Finite(0), hard: ResourceLimit::Finite(0),}
Both the soft and hard limits are set to be zero (0).
pub fn both(soft_and_hard: ResourceLimit) -> Self
[src]
pub fn both(soft_and_hard: ResourceLimit) -> Self
Set both the soft and the hard resource limits to soft_and_hard
.
pub fn new(soft: ResourceLimit, hard: ResourceLimit) -> Self
[src]
pub fn new(soft: ResourceLimit, hard: ResourceLimit) -> Self
Create a new instance.
pub fn soft_limit(&self) -> &ResourceLimit
[src]
pub fn soft_limit(&self) -> &ResourceLimit
Obtain the soft limit.
pub fn hard_limit(&self) -> &ResourceLimit
[src]
pub fn hard_limit(&self) -> &ResourceLimit
Obtain the hard limit.
Trait Implementations
impl Debug for SoftAndHardResourceLimit
[src]
impl Debug for SoftAndHardResourceLimit
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 SoftAndHardResourceLimit
[src]
impl Copy for SoftAndHardResourceLimit
impl Clone for SoftAndHardResourceLimit
[src]
impl Clone for SoftAndHardResourceLimit
fn clone(&self) -> SoftAndHardResourceLimit
[src]
fn clone(&self) -> SoftAndHardResourceLimit
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 SoftAndHardResourceLimit
[src]
impl PartialEq for SoftAndHardResourceLimit
fn eq(&self, other: &SoftAndHardResourceLimit) -> bool
[src]
fn eq(&self, other: &SoftAndHardResourceLimit) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &SoftAndHardResourceLimit) -> bool
[src]
fn ne(&self, other: &SoftAndHardResourceLimit) -> bool
This method tests for !=
.
impl Eq for SoftAndHardResourceLimit
[src]
impl Eq for SoftAndHardResourceLimit
impl PartialOrd for SoftAndHardResourceLimit
[src]
impl PartialOrd for SoftAndHardResourceLimit
fn partial_cmp(&self, other: &SoftAndHardResourceLimit) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &SoftAndHardResourceLimit) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &SoftAndHardResourceLimit) -> bool
[src]
fn lt(&self, other: &SoftAndHardResourceLimit) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &SoftAndHardResourceLimit) -> bool
[src]
fn le(&self, other: &SoftAndHardResourceLimit) -> 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: &SoftAndHardResourceLimit) -> bool
[src]
fn gt(&self, other: &SoftAndHardResourceLimit) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &SoftAndHardResourceLimit) -> bool
[src]
fn ge(&self, other: &SoftAndHardResourceLimit) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for SoftAndHardResourceLimit
[src]
impl Ord for SoftAndHardResourceLimit
fn cmp(&self, other: &SoftAndHardResourceLimit) -> Ordering
[src]
fn cmp(&self, other: &SoftAndHardResourceLimit) -> 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 SoftAndHardResourceLimit
[src]
impl Hash for SoftAndHardResourceLimit
Auto Trait Implementations
impl Send for SoftAndHardResourceLimit
impl Send for SoftAndHardResourceLimit
impl Sync for SoftAndHardResourceLimit
impl Sync for SoftAndHardResourceLimit