Struct cgroups::HugePageResources
source · pub struct HugePageResources {
pub update_values: bool,
pub limits: Vec<HugePageResource>,
}
Expand description
Provides the ability to set consumption limit on each type of hugepages.
Fields
update_values: bool
Whether values should be applied to the controller.
limits: Vec<HugePageResource>
Set a limit of consumption for each hugepages type.
Trait Implementations
sourceimpl Clone for HugePageResources
impl Clone for HugePageResources
sourcefn clone(&self) -> HugePageResources
fn clone(&self) -> HugePageResources
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 HugePageResources
impl Debug for HugePageResources
sourceimpl Default for HugePageResources
impl Default for HugePageResources
sourcefn default() -> HugePageResources
fn default() -> HugePageResources
Returns the “default value” for a type. Read more
sourceimpl PartialEq<HugePageResources> for HugePageResources
impl PartialEq<HugePageResources> for HugePageResources
sourcefn eq(&self, other: &HugePageResources) -> bool
fn eq(&self, other: &HugePageResources) -> bool
impl Eq for HugePageResources
impl StructuralEq for HugePageResources
impl StructuralPartialEq for HugePageResources
Auto Trait Implementations
impl RefUnwindSafe for HugePageResources
impl Send for HugePageResources
impl Sync for HugePageResources
impl Unpin for HugePageResources
impl UnwindSafe for HugePageResources
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