CgroupModelFieldId

Type Alias CgroupModelFieldId 

Source
pub type CgroupModelFieldId = QueriableContainerFieldId<CgroupModel>;
Expand description

Queries a specific SingleCgroupModel inside a CgroupModel tree. Its String representation looks like this: path:/system.slice/foo.service/.cpu.usage_pct The path parameter starts with path: and ends with /.. This works because SingleCgroupModelFieldId does not contain slash. The path is used to drill into the Cgroup Model tree. If Vec empty, the current CgroupModel is selected and queried with the subquery_id. The path is optional in parsing and converting to String.

Aliased Type§

pub struct CgroupModelFieldId {
    pub idx: Option<CgroupPath>,
    pub subquery_id: (SingleCgroupModelFieldId,),
    /* private fields */
}

Fields§

§idx: Option<CgroupPath>

None is only for listing variants and otherwise invalid. If None, shows up as C::IDX_PLACEHOLDER

§subquery_id: (SingleCgroupModelFieldId,)