#[non_exhaustive]pub struct HugepagesConfig {
pub hugepage_size2m: Option<i32>,
pub hugepage_size1g: Option<i32>,
}Expand description
Hugepages amount in both 2m and 1g size
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hugepage_size2m: Option<i32>Optional. Amount of 2M hugepages
hugepage_size1g: Option<i32>Optional. Amount of 1G hugepages
Implementations§
Source§impl HugepagesConfig
impl HugepagesConfig
Sourcepub fn set_hugepage_size2m<T: Into<Option<i32>>>(self, v: T) -> Self
pub fn set_hugepage_size2m<T: Into<Option<i32>>>(self, v: T) -> Self
Sets the value of hugepage_size2m.
Sourcepub fn set_hugepage_size1g<T: Into<Option<i32>>>(self, v: T) -> Self
pub fn set_hugepage_size1g<T: Into<Option<i32>>>(self, v: T) -> Self
Sets the value of hugepage_size1g.
Trait Implementations§
Source§impl Clone for HugepagesConfig
impl Clone for HugepagesConfig
Source§fn clone(&self) -> HugepagesConfig
fn clone(&self) -> HugepagesConfig
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 HugepagesConfig
impl Debug for HugepagesConfig
Source§impl Default for HugepagesConfig
impl Default for HugepagesConfig
Source§fn default() -> HugepagesConfig
fn default() -> HugepagesConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HugepagesConfigwhere
HugepagesConfig: Default,
impl<'de> Deserialize<'de> for HugepagesConfigwhere
HugepagesConfig: Default,
Source§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
Source§impl Message for HugepagesConfig
impl Message for HugepagesConfig
Source§impl PartialEq for HugepagesConfig
impl PartialEq for HugepagesConfig
Source§impl Serialize for HugepagesConfig
impl Serialize for HugepagesConfig
impl StructuralPartialEq for HugepagesConfig
Auto Trait Implementations§
impl Freeze for HugepagesConfig
impl RefUnwindSafe for HugepagesConfig
impl Send for HugepagesConfig
impl Sync for HugepagesConfig
impl Unpin for HugepagesConfig
impl UnwindSafe for HugepagesConfig
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