Struct below_model::cgroup::CgroupModel [−][src]
pub struct CgroupModel {
pub data: SingleCgroupModel,
pub children: BTreeSet<CgroupModel>,
pub count: u32,
pub recreate_flag: bool,
}
Expand description
A model that represents a cgroup subtree. Each instance is a node that uses the “data” field to represent local data. Otherwise mixing hierarchy and data makes it hard to define a Field Id type that queries nested cgroups.
Fields
data: SingleCgroupModel
children: BTreeSet<CgroupModel>
count: u32
Total number of cgroups under this subtree, including self
recreate_flag: bool
Indicate if such cgroup is created
Implementations
pub fn new(
name: String,
full_path: String,
depth: u32,
sample: &CgroupSample,
last: Option<(&CgroupSample, Duration)>
) -> CgroupModel
Trait 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 CgroupModel
impl Send for CgroupModel
impl Sync for CgroupModel
impl Unpin for CgroupModel
impl UnwindSafe for CgroupModel
Blanket Implementations
Mutably borrows from an owned value. Read more