Struct dpdk_unix::ProcPath [−][src]
pub struct ProcPath(_);
Represents /proc.
Frankly, there are files in /proc that really belong in /sys.
Methods
impl ProcPath[src]
impl ProcPathpub fn global_zoned_virtual_memory_statistics(
&self
) -> Result<HashMap<VirtualMemoryStatisticName, u64>>[src]
pub fn global_zoned_virtual_memory_statistics(
&self
) -> Result<HashMap<VirtualMemoryStatisticName, u64>>Memory statistics (from /proc/vmstat).
Interpret this by multiplying counts by page size.
pub fn memory_information(
&self,
memory_information_name_prefix: &str
) -> Result<MemoryInformation, MemoryInformationParseError>[src]
pub fn memory_information(
&self,
memory_information_name_prefix: &str
) -> Result<MemoryInformation, MemoryInformationParseError>Memory information (from /proc/meminfo).
pub fn filesystems(&self) -> Result<FileSystemTypeList, Error>[src]
pub fn filesystems(&self) -> Result<FileSystemTypeList, Error>File systems (from /proc/filesystems).
pub fn mounts(&self) -> Result<Mounts, Error>[src]
pub fn mounts(&self) -> Result<Mounts, Error>Current mounts (from /proc/self/mounts).
pub fn modules(
&self
) -> Result<LinuxKernelModulesList, LinuxKernelModulesListParseError>[src]
pub fn modules(
&self
) -> Result<LinuxKernelModulesList, LinuxKernelModulesListParseError>Current loaded Linux kernel modules (from /proc/modules).
pub fn linux_command_line_parameters(
&self
) -> Result<LinuxKernelCommandLineParameters, Error>[src]
pub fn linux_command_line_parameters(
&self
) -> Result<LinuxKernelCommandLineParameters, Error>Command line parameters used to start Linux.
pub fn write_system_control_values(
&self,
settings: HashMap<String, u64>
) -> Result<()>[src]
pub fn write_system_control_values(
&self,
settings: HashMap<String, u64>
) -> Result<()>Only execute this afte any kernel modules have loaded.
We ignore failures.
Trait Implementations
impl Debug for ProcPath[src]
impl Debug for ProcPathfn 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 ProcPath[src]
impl Clone for ProcPathfn clone(&self) -> ProcPath[src]
fn clone(&self) -> ProcPathReturns 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 Ord for ProcPath[src]
impl Ord for ProcPathfn cmp(&self, other: &ProcPath) -> Ordering[src]
fn cmp(&self, other: &ProcPath) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl PartialOrd for ProcPath[src]
impl PartialOrd for ProcPathfn partial_cmp(&self, other: &ProcPath) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &ProcPath) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &ProcPath) -> bool[src]
fn lt(&self, other: &ProcPath) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &ProcPath) -> bool[src]
fn le(&self, other: &ProcPath) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &ProcPath) -> bool[src]
fn gt(&self, other: &ProcPath) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &ProcPath) -> bool[src]
fn ge(&self, other: &ProcPath) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Eq for ProcPath[src]
impl Eq for ProcPathimpl PartialEq for ProcPath[src]
impl PartialEq for ProcPathfn eq(&self, other: &ProcPath) -> bool[src]
fn eq(&self, other: &ProcPath) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ProcPath) -> bool[src]
fn ne(&self, other: &ProcPath) -> boolThis method tests for !=.
impl Hash for ProcPath[src]
impl Hash for ProcPathfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Default for ProcPath[src]
impl Default for ProcPath