Struct cgroups::HugePageResource
source · Expand description
A hugepage type and its consumption limit for the control group.
Fields
size: String
The size of the hugepage, i.e. 2MB
, 1GB
, etc.
limit: u64
The amount of bytes (of memory consumed by the tasks) that are allowed to be backed by hugepages.
Trait Implementations
sourceimpl Clone for HugePageResource
impl Clone for HugePageResource
sourcefn clone(&self) -> HugePageResource
fn clone(&self) -> HugePageResource
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 HugePageResource
impl Debug for HugePageResource
sourceimpl Default for HugePageResource
impl Default for HugePageResource
sourcefn default() -> HugePageResource
fn default() -> HugePageResource
Returns the “default value” for a type. Read more
sourceimpl PartialEq<HugePageResource> for HugePageResource
impl PartialEq<HugePageResource> for HugePageResource
sourcefn eq(&self, other: &HugePageResource) -> bool
fn eq(&self, other: &HugePageResource) -> bool
impl Eq for HugePageResource
impl StructuralEq for HugePageResource
impl StructuralPartialEq for HugePageResource
Auto Trait Implementations
impl RefUnwindSafe for HugePageResource
impl Send for HugePageResource
impl Sync for HugePageResource
impl Unpin for HugePageResource
impl UnwindSafe for HugePageResource
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