pub struct HugePageResource {
pub size: String,
pub limit: u64,
}
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§
Source§impl Clone for HugePageResource
impl Clone for HugePageResource
Source§fn clone(&self) -> HugePageResource
fn clone(&self) -> HugePageResource
Returns a duplicate 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 for HugePageResource
impl PartialEq for HugePageResource
impl Eq for HugePageResource
impl StructuralPartialEq for HugePageResource
Auto Trait Implementations§
impl Freeze for HugePageResource
impl RefUnwindSafe for HugePageResource
impl Send for HugePageResource
impl Sync for HugePageResource
impl Unpin for HugePageResource
impl UnwindSafe for HugePageResource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more