Struct cgroups_rs::HugePageResource
source · Expand description
A hugepage type and its consumption limit for the control group.
Fields§
§size: StringThe size of the hugepage, i.e. 2MB, 1GB, etc.
limit: u64The amount of bytes (of memory consumed by the tasks) that are allowed to be backed by hugepages.
Trait Implementations§
source§impl Clone for HugePageResource
impl Clone for HugePageResource
source§fn clone(&self) -> HugePageResource
fn clone(&self) -> HugePageResource
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 HugePageResource
impl Debug for HugePageResource
source§impl Default for HugePageResource
impl Default for HugePageResource
source§fn default() -> HugePageResource
fn default() -> HugePageResource
Returns the “default value” for a type. Read more
source§impl PartialEq<HugePageResource> for HugePageResource
impl PartialEq<HugePageResource> for HugePageResource
source§fn eq(&self, other: &HugePageResource) -> bool
fn eq(&self, other: &HugePageResource) -> bool
This method tests for
self and other values to be equal, and is used
by ==.