[−][src]Struct heim_cpu::CpuStats
CPU statistics.
See OS-specific extensions for more statistics.
Implementations
impl CpuStats
[src]
pub fn ctx_switches(&self) -> u64
[src]
Returns number of context switches (voluntary + involuntary) since system boot.
pub fn interrupts(&self) -> u64
[src]
Returns number of interrupts since system boot.
Trait Implementations
impl CpuStatsExt for CpuStats
[src]
This is supported on Linux only.
pub fn soft_interrupts(&self) -> u64
[src]
impl Debug for CpuStats
[src]
Auto Trait Implementations
impl RefUnwindSafe for CpuStats
[src]
impl Send for CpuStats
[src]
impl Sync for CpuStats
[src]
impl Unpin for CpuStats
[src]
impl UnwindSafe for CpuStats
[src]
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> Same<T> for T
type Output = T
Should always be Self
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>,