Struct tabin_plugins::sys::fs::cgroup::cpuacct::Stat[][src]

pub struct Stat {
    pub user: UserHz,
    pub system: UserHz,
}

Similar to /proc/stat, but shows toatal CPU usage by the cgroup

Fields

user: UserHzsystem: UserHz

Implementations

impl Stat[src]

pub fn load() -> Result<Stat, Error>[src]

Create a new Stat with values for the cgroup fs

pub fn total(&self) -> UserHz[src]

Trait Implementations

impl Debug for Stat[src]

Auto Trait Implementations

impl RefUnwindSafe for Stat

impl Send for Stat

impl Sync for Stat

impl Unpin for Stat

impl UnwindSafe for Stat

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.