[−][src]Struct dpdk_unix::ProcPath
Represents /proc
.
Frankly, there are files in /proc
that really belong in /sys
.
Methods
impl ProcPath
[src]
pub fn is_autogroup_active(&self) -> Result<bool, Error>
[src]
Is autogroup active? (from /proc/sys/kernel/sched_autogroup_enabled
).
pub fn enable_autogroup(&self) -> Result<(), Error>
[src]
Enable the autogroup feature (requires Root).
pub fn disable_autogroup(&self) -> Result<(), Error>
[src]
Disable the autogroup feature (requires Root).
pub fn adjust_autogroup_nice_value_for_self(
&self,
nice_value: Nice
) -> Result<(), Error>
[src]
&self,
nice_value: Nice
) -> Result<(), Error>
Adjust the autogroup setting of nice for the current process.
pub fn self_status(
&self
) -> Result<ProcessStatusStatistics, ProcessStatusFileParseError>
[src]
&self
) -> Result<ProcessStatusStatistics, ProcessStatusFileParseError>
Status information from /proc/self/status
.
pub fn process_status(
&self,
identifier: pid_t
) -> Result<ProcessStatusStatistics, ProcessStatusFileParseError>
[src]
&self,
identifier: pid_t
) -> Result<ProcessStatusStatistics, ProcessStatusFileParseError>
Status information from /proc/<IDENTIFIER>/status
where <IDENTIFIER>
is identifier
.
pub fn global_zoned_virtual_memory_statistics(
&self
) -> Result<HashMap<VirtualMemoryStatisticName, u64>>
[src]
&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: &[u8]
) -> Result<MemoryInformation, MemoryInformationParseError>
[src]
&self,
memory_information_name_prefix: &[u8]
) -> Result<MemoryInformation, MemoryInformationParseError>
Memory information (from /proc/meminfo
).
pub fn filesystems(&self) -> Result<FileSystemTypeList, Error>
[src]
File systems (from /proc/filesystems
).
pub fn mounts(&self) -> Result<Mounts, Error>
[src]
Current mounts (from /proc/self/mounts
).
pub fn modules(
&self
) -> Result<LinuxKernelModulesList, LinuxKernelModulesListParseError>
[src]
&self
) -> Result<LinuxKernelModulesList, LinuxKernelModulesListParseError>
Current loaded Linux kernel modules (from /proc/modules
).
pub fn linux_command_line_parameters(
&self
) -> Result<LinuxKernelCommandLineParameters, Error>
[src]
&self
) -> Result<LinuxKernelCommandLineParameters, Error>
Command line parameters used to start Linux.
pub fn write_system_control_values(
&self,
settings: &HashMap<String, u64>
) -> Result<()>
[src]
&self,
settings: &HashMap<String, u64>
) -> Result<()>
Only execute this afte any kernel modules have loaded.
We ignore failures.
Trait Implementations
impl Eq for ProcPath
[src]
impl Clone for ProcPath
[src]
fn clone(&self) -> ProcPath
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialOrd<ProcPath> for ProcPath
[src]
fn partial_cmp(&self, other: &ProcPath) -> Option<Ordering>
[src]
fn lt(&self, other: &ProcPath) -> bool
[src]
fn le(&self, other: &ProcPath) -> bool
[src]
fn gt(&self, other: &ProcPath) -> bool
[src]
fn ge(&self, other: &ProcPath) -> bool
[src]
impl PartialEq<ProcPath> for ProcPath
[src]
impl Default for ProcPath
[src]
impl Ord for ProcPath
[src]
fn cmp(&self, other: &ProcPath) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl Hash for ProcPath
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for ProcPath
[src]
impl Serialize for ProcPath
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for ProcPath
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,