Trait MemoryController

Source
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§

Source

fn usage_in_bytes(&self) -> Box<dyn ReadAttr<Bytes> + '_>

Source

fn limit_in_bytes(&self) -> Box<dyn AttrFile<Bytes> + '_>

Source

fn failcnt(&self) -> Box<dyn ReadAttr<usize> + '_>

Source

fn max_usage_in_bytes(&self) -> Box<dyn ReadAttr<Bytes> + '_>

Source

fn soft_limit_in_bytes(&self) -> Box<dyn AttrFile<Bytes> + '_>

Source

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

Source

fn use_hierarchy(&self) -> Box<dyn AttrFile<bool> + '_>

Source

fn force_empty(&self) -> Box<dyn ResetAttr + '_>

Source

fn swappiness(&self) -> Box<dyn AttrFile<u8> + '_>

Source

fn swap_memory_controller(&self) -> &dyn SwapMemoryController

Implementors§