Skip to main content

CpuController

Trait CpuController 

Source
pub trait CpuController: Controller {
    // Required methods
    fn shares(&self) -> Box<dyn AttrFile<usize> + '_>;
    fn stat(&self) -> Box<dyn ReadAttr<Stat> + '_>;
    fn cfs_period_us(&self) -> Box<dyn AttrFile<Duration> + '_>;
    fn cfs_quota_us(&self) -> Box<dyn AttrFile<Duration> + '_>;
}

Required Methods§

Source

fn shares(&self) -> Box<dyn AttrFile<usize> + '_>

Source

fn stat(&self) -> Box<dyn ReadAttr<Stat> + '_>

Source

fn cfs_period_us(&self) -> Box<dyn AttrFile<Duration> + '_>

Source

fn cfs_quota_us(&self) -> Box<dyn AttrFile<Duration> + '_>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§