[][src]Function sysctl::value

pub fn value(name: &str) -> Result<CtlValue, SysctlError>

Takes the name of the OID as argument and returns a result containing the sysctl value if success, or a SysctlError on failure

Example

extern crate sysctl;

fn main() {
    println!("Value: {:?}", sysctl::value("kern.osrevision"));
}