Struct below_model::cgroup::CgroupModelFieldId
source · [−]pub struct CgroupModelFieldId {
pub path: Option<Vec<String>>,
pub subquery_id: SingleCgroupModelFieldId,
}
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.
Fields
path: Option<Vec<String>>
To drill into children recursively. If Vec empty, queries self. None is only for listing variants and otherwise invalid.
subquery_id: SingleCgroupModelFieldId
Trait Implementations
Return iterator for unit variants as well as nested variants.
Return iterator for unit variants only.
type Queriable = CgroupModel
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CgroupModelFieldId
impl Send for CgroupModelFieldId
impl Sync for CgroupModelFieldId
impl Unpin for CgroupModelFieldId
impl UnwindSafe for CgroupModelFieldId
Blanket Implementations
Mutably borrows from an owned value. Read more