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§
source§impl Clone for CgroupModelFieldId
impl Clone for CgroupModelFieldId
source§fn clone(&self) -> CgroupModelFieldId
fn clone(&self) -> CgroupModelFieldId
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CgroupModelFieldId
impl Debug for CgroupModelFieldId
source§impl EnumIter for CgroupModelFieldId
impl EnumIter for CgroupModelFieldId
source§fn all_variant_iter() -> Box<dyn Iterator<Item = Self>>
fn all_variant_iter() -> Box<dyn Iterator<Item = Self>>
Return iterator for unit variants as well as nested variants.
source§fn unit_variant_iter() -> Box<dyn Iterator<Item = Self>>
fn unit_variant_iter() -> Box<dyn Iterator<Item = Self>>
Return iterator for unit variants only.
source§impl FieldId for CgroupModelFieldId
impl FieldId for CgroupModelFieldId
type Queriable = CgroupModel
source§impl From<SingleCgroupModelFieldId> for CgroupModelFieldId
impl From<SingleCgroupModelFieldId> for CgroupModelFieldId
source§fn from(v: SingleCgroupModelFieldId) -> Self
fn from(v: SingleCgroupModelFieldId) -> Self
Converts to this type from the input type.
source§impl FromStr for CgroupModelFieldId
impl FromStr for CgroupModelFieldId
source§impl PartialEq<CgroupModelFieldId> for CgroupModelFieldId
impl PartialEq<CgroupModelFieldId> for CgroupModelFieldId
source§fn eq(&self, other: &CgroupModelFieldId) -> bool
fn eq(&self, other: &CgroupModelFieldId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ToString for CgroupModelFieldId
impl ToString for CgroupModelFieldId
impl StructuralPartialEq for CgroupModelFieldId
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more