1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
//! Procure is a library for grabbing various types of metrics from a //! Linux system. // Externs extern crate sysconf; // Imports use std::io; use std::result; use std::num::ParseIntError; // Exports pub mod cpu; pub mod process; /// Custom Result type many `procure` methods return pub type Result<T> = result::Result<T, Error>; /// Custom Error type returned with `procure` [`Result`](type.Result.html)'s #[derive(Debug)] pub enum Error { RuntimeError(String), IoError(io::Error), ParseError(ParseIntError), }