pub trait MemoryController: Controller {
// Required methods
fn usage_in_bytes(&self) -> Box<dyn ReadAttr<Bytes> + '_>;
fn limit_in_bytes(&self) -> Box<dyn AttrFile<Bytes> + '_>;
fn failcnt(&self) -> Box<dyn ReadAttr<usize> + '_>;
fn max_usage_in_bytes(&self) -> Box<dyn ReadAttr<Bytes> + '_>;
fn soft_limit_in_bytes(&self) -> Box<dyn AttrFile<Bytes> + '_>;
fn stat(&self) -> Box<dyn ReadAttr<Stat> + '_>;
fn use_hierarchy(&self) -> Box<dyn AttrFile<bool> + '_>;
fn force_empty(&self) -> Box<dyn ResetAttr + '_>;
fn swappiness(&self) -> Box<dyn AttrFile<u8> + '_>;
fn swap_memory_controller(&self) -> &dyn SwapMemoryController;
}Required Methods§
fn usage_in_bytes(&self) -> Box<dyn ReadAttr<Bytes> + '_>
fn limit_in_bytes(&self) -> Box<dyn AttrFile<Bytes> + '_>
fn failcnt(&self) -> Box<dyn ReadAttr<usize> + '_>
fn max_usage_in_bytes(&self) -> Box<dyn ReadAttr<Bytes> + '_>
fn soft_limit_in_bytes(&self) -> Box<dyn AttrFile<Bytes> + '_>
fn stat(&self) -> Box<dyn ReadAttr<Stat> + '_>
fn use_hierarchy(&self) -> Box<dyn AttrFile<bool> + '_>
fn force_empty(&self) -> Box<dyn ResetAttr + '_>
fn swappiness(&self) -> Box<dyn AttrFile<u8> + '_>
fn swap_memory_controller(&self) -> &dyn SwapMemoryController
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".