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§
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> + '_>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".