Enum dpdk_unix::HugePageSize
[−]
[src]
#[repr(u64)]pub enum HugePageSize { _1MB, _2MB, _4MB, _16MB, _256MB, _512MB, _1GB, _2GB, _16GB, }
Variants
_1MB
_2MB
_4MB
_16MB
_256MB
_512MB
_1GB
_2GB
_16GB
Methods
impl HugePageSize
[src]
fn calculateNumberOfHugePages(&self, desiredNumberOfKiloBytes: u64) -> u64
impl HugePageSize
[src]
const PotentiallySupportedHugePageSizesLargestFirst: [HugePageSize; 9]
PotentiallySupportedHugePageSizesLargestFirst: [HugePageSize; 9] = [HugePageSize::_16GB, HugePageSize::_2GB, HugePageSize::_1GB, HugePageSize::_512MB, HugePageSize::_256MB, HugePageSize::_16MB, HugePageSize::_4MB, HugePageSize::_2MB, HugePageSize::_1MB]
fn fromProcMemInfoValue(value: u64) -> Option<Self>
fn to_str(&self) -> &'static str
fn size(&self) -> u64
Trait Implementations
impl Debug for HugePageSize
[src]
impl Copy for HugePageSize
[src]
impl Clone for HugePageSize
[src]
fn clone(&self) -> HugePageSize
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 PartialEq for HugePageSize
[src]
fn eq(&self, __arg_0: &HugePageSize) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for HugePageSize
[src]
impl PartialOrd for HugePageSize
[src]
fn partial_cmp(&self, __arg_0: &HugePageSize) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for HugePageSize
[src]
fn cmp(&self, __arg_0: &HugePageSize) -> Ordering
This method returns an Ordering
between self
and other
. Read more