Struct below_model::cgroup::CgroupModel [−][src]
pub struct CgroupModel {
pub name: String,
pub full_path: String,
pub inode_number: Option<u64>,
pub depth: u32,
pub cpu: Option<CgroupCpuModel>,
pub memory: Option<CgroupMemoryModel>,
pub io: Option<BTreeMap<String, CgroupIoModel>>,
pub io_total: Option<CgroupIoModel>,
pub pressure: Option<CgroupPressureModel>,
pub children: BTreeSet<CgroupModel>,
pub count: u32,
pub recreate_flag: bool,
}Fields
name: Stringfull_path: Stringinode_number: Option<u64>depth: u32cpu: Option<CgroupCpuModel>memory: Option<CgroupMemoryModel>io: Option<BTreeMap<String, CgroupIoModel>>io_total: Option<CgroupIoModel>pressure: Option<CgroupPressureModel>children: BTreeSet<CgroupModel>count: u32recreate_flag: boolImplementations
pub fn new(
name: String,
full_path: String,
depth: u32,
sample: &CgroupSample,
last: Option<(&CgroupSample, Duration)>
) -> CgroupModelTrait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for CgroupModelimpl Send for CgroupModelimpl Sync for CgroupModelimpl Unpin for CgroupModelimpl UnwindSafe for CgroupModelBlanket Implementations
Mutably borrows from an owned value. Read more