Trait procfs::Current

source ·
pub trait Current: FromRead {
    const PATH: &'static str;

    // Provided method
    fn current() -> ProcResult<Self> { ... }
}
Expand description

Allows associating a specific file to parse.

Required Associated Constants§

source

const PATH: &'static str

Provided Methods§

source

fn current() -> ProcResult<Self>

Parse the current value using the system file.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Current for Vec<MountEntry>

source§

const PATH: &'static str = "/proc/mounts"

source§

impl Current for Vec<PartitionEntry>

source§

const PATH: &'static str = "/proc/partitions"

source§

impl Current for KeyUsers

source§

const PATH: &'static str = "/proc/key-users"

source§

impl Current for Keys

source§

const PATH: &'static str = "/proc/keys"

Implementors§

source§

impl Current for ArpEntries

source§

const PATH: &'static str = "/proc/net/arp"

source§

impl Current for InterfaceDeviceStatus

source§

const PATH: &'static str = "/proc/net/dev"

source§

impl Current for RouteEntries

source§

const PATH: &'static str = "/proc/net/route"

source§

impl Current for Snmp6

source§

const PATH: &'static str = "/proc/net/snmp6"

source§

impl Current for Snmp

source§

const PATH: &'static str = "/proc/net/snmp"

source§

impl Current for UnixNetEntries

source§

const PATH: &'static str = "/proc/net/unix"

source§

impl Current for CGroupControllers

source§

const PATH: &'static str = "/proc/cgroups"

source§

impl Current for CpuInfo

source§

const PATH: &'static str = "/proc/cpuinfo"

source§

impl Current for CpuPressure

source§

const PATH: &'static str = "/proc/pressure/cpu"

source§

impl Current for DiskStats

source§

const PATH: &'static str = "/proc/diskstats"

source§

impl Current for IoPressure

source§

const PATH: &'static str = "/proc/pressure/io"

source§

impl Current for Iomem

source§

const PATH: &'static str = "/proc/iomem"

source§

impl Current for KernelCmdline

source§

const PATH: &'static str = "/proc/cmdline"

source§

impl Current for KernelConfig

source§

const PATH: &'static str = PROC_CONFIG_GZ

source§

impl Current for KernelModules

source§

const PATH: &'static str = "/proc/modules"

source§

impl Current for LoadAverage

source§

const PATH: &'static str = "/proc/loadavg"

source§

impl Current for Locks

source§

const PATH: &'static str = "/proc/locks"

source§

impl Current for Meminfo

source§

const PATH: &'static str = "/proc/meminfo"

source§

impl Current for MemoryPressure

source§

const PATH: &'static str = "/proc/pressure/memory"

source§

impl Current for SharedMemorySegments

source§

const PATH: &'static str = "/proc/sysvipc/shm"

source§

impl Current for Uptime

source§

const PATH: &'static str = "/proc/uptime"

source§

impl Current for VmStat

source§

const PATH: &'static str = "/proc/vmstat"