Struct dpdk_unix::memory_information::MemoryInformation [−][src]
pub struct MemoryInformation(_);
A set of memory statistics.
Super-detailed information (hard to parse, too) is in /proc/zoneinfo.
This is broken down into DMA, DMA33 and Normal sub-zones and then by CPU for each Numa Node (aka 'zone').
A sort of detailed version of /proc/vmstat.
Methods
impl MemoryInformation[src]
impl MemoryInformationpub fn get_statistic(
&self,
memory_information_name: &MemoryInformationName
) -> Option<u64>[src]
pub fn get_statistic(
&self,
memory_information_name: &MemoryInformationName
) -> Option<u64>Get a statistic.
pub fn free_physical_ram(&self) -> Option<u64>[src]
pub fn free_physical_ram(&self) -> Option<u64>Free physical RAM in Kilobytes.
pub fn default_huge_page_size(&self) -> Option<HugePageSize>[src]
pub fn default_huge_page_size(&self) -> Option<HugePageSize>Default huge page size.
pub fn used_physical_ram(&self) -> Option<u64>[src]
pub fn used_physical_ram(&self) -> Option<u64>Used physical RAM in bytes.
pub fn used_swap(&self) -> Option<u64>[src]
pub fn used_swap(&self) -> Option<u64>Used swap RAM in bytes.
Trait Implementations
impl Debug for MemoryInformation[src]
impl Debug for MemoryInformationfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for MemoryInformation[src]
impl Clone for MemoryInformationfn clone(&self) -> MemoryInformation[src]
fn clone(&self) -> MemoryInformationReturns 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)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for MemoryInformation[src]
impl PartialEq for MemoryInformationfn eq(&self, other: &MemoryInformation) -> bool[src]
fn eq(&self, other: &MemoryInformation) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &MemoryInformation) -> bool[src]
fn ne(&self, other: &MemoryInformation) -> boolThis method tests for !=.
impl Eq for MemoryInformation[src]
impl Eq for MemoryInformationAuto Trait Implementations
impl Send for MemoryInformation
impl Send for MemoryInformationimpl Sync for MemoryInformation
impl Sync for MemoryInformation