Struct fb_procfs::ProcReader
source · pub struct ProcReader { /* private fields */ }
Implementations§
source§impl ProcReader
impl ProcReader
pub fn new() -> ProcReader
pub fn new_with_custom_procfs(path: PathBuf) -> ProcReader
pub fn read_kernel_version(&self) -> Result<String>
pub fn read_stat(&self) -> Result<Stat>
pub fn read_meminfo(&self) -> Result<MemInfo>
pub fn read_vmstat(&self) -> Result<VmStat>
pub fn read_disk_stats_and_fsinfo(&self) -> Result<DiskMap>
pub fn read_pid_stat(&self, pid: u32) -> Result<PidStat>
pub fn read_tid_stat(&self, tid: u32) -> Result<PidStat>
pub fn read_pid_mem(&self, pid: u32) -> Result<PidStatus>
pub fn read_pid_io(&self, pid: u32) -> Result<PidIo>
pub fn read_pid_cgroup(&self, pid: u32) -> Result<String>
pub fn read_pid_cmdline(&mut self, pid: u32) -> Result<Option<Vec<String>>>
pub fn read_pid_exe_path(&self, pid: u32) -> Result<String>
pub fn read_all_pids(&mut self) -> Result<PidMap>
Auto Trait Implementations§
impl !RefUnwindSafe for ProcReader
impl Send for ProcReader
impl Sync for ProcReader
impl Unpin for ProcReader
impl !UnwindSafe for ProcReader
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more