Function mprober_lib::memory::free[][src]

pub fn free() -> Result<Free, ScannerError>

Get memory information like the free command by reading the /proc/meminfo file.

extern crate mprober_lib;

use mprober_lib::memory;

let free = memory::free().unwrap();

println!("{:#?}", free);