Current

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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 CryptoTable

Source§

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

Source§

impl Current for Devices

Source§

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

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"