Struct procfs::KernelStats [−][src]
Kernel/system statistics, from /proc/stat
Fields
total: CpuTime
The amount of time the system spent in various states
cpu_time: Vec<CpuTime>
The amount of time that specific CPUs spent in various states
ctxt: u64
The number of context switches that the system underwent
btime: u64
Boot time, in number of seconds since the Epoch
processes: u64
Number of forks since boot
procs_running: Option<u32>
Number of processes in runnable state
(Since Linux 2.5.45)
procs_blocked: Option<u32>
Number of processes blocked waiting for I/O
(Since Linux 2.5.45)
Implementations
impl KernelStats
[src]
pub fn new() -> ProcResult<KernelStats>
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for KernelStats
impl Send for KernelStats
impl Sync for KernelStats
impl Unpin for KernelStats
impl UnwindSafe for KernelStats
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,