procfs2 0.2.1

A modern, zero-copy, strongly-typed Rust library for reading Linux /proc and /sys
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// Block device info from `/sys/block`.
pub mod block;
/// CPU count and frequency info from `/sys/devices/system/cpu`.
pub mod cpu;
/// Network interface info from `/sys/class/net`.
pub mod net;
/// Power supply info from `/sys/class/power_supply`.
pub mod power;

pub use block::{BlockDevice, BlockStat, QueueParams};
pub use cpu::{CpuFreqInfo, cpu_count, cpu_freq, online_cpus};
pub use net::{MacAddress, NetIfFlags, NetIfStat, NetInterface, OperState};
pub use power::{ChargeStatus, PowerSupply, PowerSupplyType};