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
sourceimpl Clone for CgroupModelFieldId
impl Clone for CgroupModelFieldId
sourcefn clone(&self) -> CgroupModelFieldId
fn clone(&self) -> CgroupModelFieldId
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CgroupModelFieldId
impl Debug for CgroupModelFieldId
sourceimpl EnumIter for CgroupModelFieldId
impl EnumIter for CgroupModelFieldId
sourcefn 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.
sourcefn unit_variant_iter() -> Box<dyn Iterator<Item = Self>>
fn unit_variant_iter() -> Box<dyn Iterator<Item = Self>>
Return iterator for unit variants only.
sourceimpl FieldId for CgroupModelFieldId
impl FieldId for CgroupModelFieldId
type Queriable = CgroupModel
sourceimpl From<SingleCgroupModelFieldId> for CgroupModelFieldId
impl From<SingleCgroupModelFieldId> for CgroupModelFieldId
sourcefn from(v: SingleCgroupModelFieldId) -> Self
fn from(v: SingleCgroupModelFieldId) -> Self
Converts to this type from the input type.
sourceimpl FromStr for CgroupModelFieldId
impl FromStr for CgroupModelFieldId
sourceimpl PartialEq<CgroupModelFieldId> for CgroupModelFieldId
impl PartialEq<CgroupModelFieldId> for CgroupModelFieldId
sourcefn eq(&self, other: &CgroupModelFieldId) -> bool
fn eq(&self, other: &CgroupModelFieldId) -> bool
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more